Skip to content

Releases: dereuromark/cakephp-queue

3.14.1

13 Jan 13:22
bbf9b0e

Choose a tag to compare

Bugfixes

  • Fix pid to not be int casted.
  • Validation requirePresence('workerkey') added for processes

3.14.0

06 Jan 13:30

Choose a tag to compare

Improvements

  • Removed deprecations, CakePHP 3.7+ now.
  • Easier job adding from CLI by default.
  • Added invisible way (/data/ instead of /edit/ in backend) to modify data payload for trivial cases.
  • Processes (running workers) can also now be terminated from the web backend.

Multi CLI Server Support

You can now run multiple worker servers:

  • Tracking server name per worker now - make sure you have either env('SERVER_NAME') or gethostname() return a unique name per server instance.
  • Added better deploy window handling using bin/cake queue end in the deployment script by shutting down active workers early. Either all (bin/cake queue end -q), or by server instance (bin/cake queue end server -q ).

To migrate make sure you execute this once all workers have been terminated (no active processes):

bin/cake migrations migrate -p Queue

3.13.1

17 Dec 15:57
b7f5cb0

Choose a tag to compare

Bugfixes

  • Limit the error output on the overview page.
  • Config Queue.exitwhennothingtodo is not required anymore

3.13.0

19 Nov 11:58
c1fa86f

Choose a tag to compare

Improvements

  • getOrFail() usage where required/needed.
  • FrozenTime() usage for better timezone handling
  • Prevent config loading from file if Configure key Queue.configLoaded is found.
  • Include processes status in queue settings command to display currently running jobs.
  • Colorful (green) success messages in CLI
  • Nullable improvements around DateTime

3.12.0

07 Nov 18:01

Choose a tag to compare

Improvements

  • Consistent FrozenTime usage for datetime handling to prevent timezone issues (DB vs PHP) for delayed jobs.
  • Improved updateProgress() to allow status update.
  • Improve pending widget overview (include delay, progress and status)
  • Allow delayed job execution to be tested from the admin backend.
  • Include detailed stats per job type. Needs to be enabled via isStatisticEnabled config.

3.11.0

28 Oct 12:01
70c2cf3

Choose a tag to compare

Improvements

  • Better isQueued() handling with optional job type
  • CakePHP 3.6+, deprecations removed
  • Phinx 0.10 compatibility

3.10.4

29 Aug 21:22
87da340

Choose a tag to compare

Bugfixes

  • Fixed exclude lists for types or groups.
  • Use date() around timestamp usage.

3.10.3

15 Aug 16:00
10a0525

Choose a tag to compare

Bugfixes

Make sure that if a process gets stuck, e.g. in some exec() forever running code, that the crontab doesnt built up too many never-ending workers running and then killing the server.

Default: 120s*100 = 3.3h

So if you spawn new runners every 5 minutes via crontab cronjob setting, you get a total process count of 40 as the worse case scenario.

Via workertimeout config it can be manually adjusted to a custom value.
Make sure you adjust it to the longest possible running job * x seconds at least.

The previous 0 (forever) timeout on runners is not a recommended setting anymore.

3.10.2

25 Jul 15:34

Choose a tag to compare

Improvements

Allow filtering per type and group also with multiple values (comma separated). Allow also excluding using - prefix.

3.10.1

24 Jul 14:33
dfa8b14

Choose a tag to compare

Improvements

  • Allow runner to only fetch certain group or type.
  • Search functionality can be disabled via Queue.isSearchEnabled Configure key. Otherwise auto-detect based on friendsofcake/search plugin being loaded decides this.