Queue plugin for CakePHP - simple, pure PHP and without dependencies.
MIT License
Published by dereuromark over 1 year ago
Published by dereuromark almost 2 years ago
Allow configuration of serializing strategy:
serialize()
json_encode()
SerializerInterface
'Queue' => [
...
'serializerClass' => \Queue\Utility\JsonSerializer::class,
'serializerConfig' => [...],
],
Added new MailerTask
specifically for sending reusable emails using Mailer
objects, but without passing through actual objects.
Instead, the class string (FQCN) is passed only together with config.
This allows it to work with JSON strategy and even in between updates of the server (as passed objects could fail to be "unserialized").
$data = [
'class' => TestMailer::class,
'action' => 'testAction',
'vars' => [...],
];
$queuedJobsTable->createJob('Queue.Mailer', $data);
Added same JSON safe strategy for EmailTask
and deprecated the object ways here only to be used with legacy ObjectSerializer.
$data = [
'class' => Message::class,
'settings' => $settings,
];
$queuedJobsTable->createJob('Queue.Email', $data);
The benefit of JSON serializing is:
Published by dereuromark almost 2 years ago
Small CakePHP 3 fixes
Published by dereuromark about 2 years ago
Added AddFromBackendInterface
to allow listing only possible tasks in GUI.
Some tasks that can be added (implementing AddInterface
) require arguments and can as such only be executed from CLI.
With the new interface, this can now be differentiated.
Published by dereuromark about 2 years ago
Fixed Migration OldTaskFinder
for upgrading from v5 to v6.
Published by dereuromark about 2 years ago
Removed deprecation introduced in 6.4.2
Published by dereuromark about 2 years ago
Fixed markJobDone()
to add valid 1
(100%) value and added validation for expected 0...1
range.
Published by dereuromark over 2 years ago
Reverted BC breaks.
Published by dereuromark over 2 years ago
Full Changelog: https://github.com/dereuromark/cakephp-queue/compare/6.3.2...6.4.0
Published by dereuromark over 2 years ago
Full Changelog: https://github.com/dereuromark/cakephp-queue/compare/6.3.1...6.3.2
Published by dereuromark over 2 years ago
Full Changelog: https://github.com/dereuromark/cakephp-queue/compare/6.3.0...6.3.1
Published by dereuromark over 2 years ago
Full Changelog: https://github.com/dereuromark/cakephp-queue/compare/6.2.2...6.3.0
Published by dereuromark almost 3 years ago
Fixed EmailTask to work with Cake\Mailer\Message
object as expected, alongside the other ways it already supports.
Published by dereuromark almost 3 years ago
Fix up deprecation of helper/engine.
Published by dereuromark almost 3 years ago
Note: CakePHP 4.2+ and PHP 7.3+ now, also requires Tools 2.4+ if backend is used
Published by dereuromark about 3 years ago
Added TaskFinder::getClass()
to resolve a name to a task class.
Published by dereuromark about 3 years ago
Fixed small notice.
Published by dereuromark over 3 years ago
createJob()
.Published by dereuromark over 3 years ago
Io
adapter class to avoid direct couplingMyTask
vs MyPlugin.MyTask
)FQCN::class
usage via QueuedJobsTable::createJob()
action
keybin/cake
overview for details.Published by dereuromark over 3 years ago
action
keyPlease help to test and stabilize.