cakephp-queue

Queue plugin for CakePHP - simple, pure PHP and without dependencies.

MIT License

Downloads
633.9K
Stars
301
Committers
64
cakephp-queue - 3.9.0

Published by dereuromark over 6 years ago

Improvements

  • Added QueuedJobs backend.
  • Simplified using built-in Email task (content key now on same level as settings and vars key).
  • Allow PHP7 Throwable errors to be caught, logged and continue processing in Queue handling.
cakephp-queue - 3.8.1

Published by dereuromark over 6 years ago

Bugfixes

  • Fixed transport setting for QueueEmailTask

Improvements

  • Allow deleting fetched items.
cakephp-queue - 3.8.0

Published by dereuromark over 6 years ago

Adjustments

CakePHP 3.5+ from here on due to PHP 7.2 compatibility.

cakephp-queue - 3.7.1

Published by dereuromark over 6 years ago

Improvements

Added isQueued() convenience method for simple re-queue checking.

cakephp-queue - 3.7.0

Published by dereuromark almost 7 years ago

Important changes

  • The default task retry config has been adjusted from 4 to 1. It is not realistic that a task needs 5 tries to finish. At least not by default. Please make sure you adjust your scripts to a higher value if needed.
  • The failureMessage property has been deprecated. In the next major the tasks' run() method must be void and throw an exception with a meaningful error message instead of returning false and setting this property. This asserts a cleaner and more consistent workflow.

Improvements

  • By default Foundation (v5+) and Boostrap (v3+) should work out of the box.
  • Allow resetting of all tasks via backend. So far it was only possible via CLI.
  • Improved docs. It now states the task configs better and also explains how to write your own tasks.
  • Improved queue runner feedback. It now states the correct type of failure in the logs and on CLI output (requeued vs aborted)
cakephp-queue - 3.6.3

Published by dereuromark almost 7 years ago

Bugfixes

Make posix extension optional, but recommended. Also visible in admin overview now.

cakephp-queue - 3.6.2

Published by dereuromark almost 7 years ago

Bugfixes

  • Fix IdeHelper extension to not prefix with plugin as this does not work.
  • Fix task loading to prioritize app over plugins.

Improvements

  • Allow cleanuptimeout to be set to 0 for skipping.
  • Improved test documentation.
cakephp-queue - 3.6.1

Published by dereuromark almost 7 years ago

Bugfixes

  • If posix is not enabled the filename is created as sha1 hash, fixed regexp
  • Do not export test_app folder for tagged releases
cakephp-queue - 3.6.0

Published by dereuromark almost 7 years ago

Improvements

  • Utf8mb4 by default
  • Basic Sqlserver support
  • Allow connection to be configurable

Bugfixes

  • Revert json_encode() back to serialize() for object handling. This is a regression fix also for email sending. Make sure all jobs are processed before updating! Also make sure you do not pass any security critical user data, but only references to DB records to process etc. This way you also do not run into size issues of the payload.
  • failure_message mediumtext to not truncate larger datasets
  • pid length fixed
cakephp-queue - 3.5.3

Published by dereuromark about 7 years ago

Improvements

Added IdeHelper plugin support for generating (PhpStorm) meta file.
This allows typehinting and autocomplete for your QueuedJobsTable and specifically its createJob() method.

cakephp-queue - 3.5.2

Published by dereuromark about 7 years ago

Bugfixes

Fix deleting of queue failures.

cakephp-queue - 3.5.1

Published by dereuromark about 7 years ago

Bugfixes

Fixed duplication issues.

cakephp-queue - 3.5.0

Published by dereuromark about 7 years ago

Improvements

The PID "file system" approach has been deprecated.
It instead now uses a DB driven approach for consistency with the DB table existing already for tasks.
The new table "queue_processes" now contains the PID info.
This allows to use the Queue plugin also on environments with shared DB or without any usable (shared) filesystem present.
To enable set the Queue.pidfilepath to false.

Note: The new DB table will automatically be created with your hopefully deploy-script added command line call bin/cake migrations migrate -p Queue. Thus a minor release here.

cakephp-queue - 3.4.1

Published by dereuromark over 7 years ago

Make mailer configurable, add missing headers.

cakephp-queue - 3.4.0

Published by dereuromark over 7 years ago

Improvements

Rewrite with json_encode/json_decode:
unserialize() was too easy to break and even a bit dangerous.
Now JSON data gets passed around.

Also now included:

  • Priority for tasks
  • Transactions on getting a new job if supported from the database

Note: queued_tasks table is now queued_jobs to be consistent what it actually stands for.
Make sure you run migrations and adjust all your loadModel() calls etc.

Minor cleanups included.

Please upgrade with an empty queue to avoid data loss!

cakephp-queue - Follow up on SimpleQueueTransport fix

Published by dereuromark about 8 years ago

SimpleQueueTransport fix

cakephp-queue - Fix SimpleQueueTransport

Published by dereuromark over 8 years ago

Also:

  • requestJob() has been rewritten to better work cross DB.
cakephp-queue - Make admin backend work

Published by dereuromark over 8 years ago

cakephp-queue - SimpleQueueTransport added

Published by dereuromark over 8 years ago

SimpleQueueTransport was added to only serialize the contents of the email, not the whole object.
This can be used as simplified alternative if you are using the built in CakePHP default Email class only.

Also fixed:

  • Increased length for data field to avoid truncating
cakephp-queue - Release for CakePHP 3.1+

Published by dereuromark over 8 years ago

Fixes:

  • Cake\I18n\Time now used consistently thanks to @AlexMax
  • Cake\Mailer\Email now works as expected when set directly as object.

Removed deprecations.
CS passes now.

Package Rankings
Top 1.29% on Packagist.org
Badges
Extracted from project README
CI Coverage Status Minimum PHP Version PHPStan Coding Standards