Releases: pdscopes/task-worker
v2.1.0
The latest updates composer to be for PHP 7.2, removes the dependency on vlucas/phpdotenv, and adds a new exception.
composer.json
The minimum PHP version has been upped from 7.0
to 7.2
, we've added the, already required, ext-json
, and upgraded to PHPUnit 8.
vlucas/phpdotenv
This project no longer has a dependency on vlucas/phpdotenv
. This is purely as they are updating major version more frequently than this project and so this removal will mean you can use whichever version you wish.
QueueNameRequiredException
Some queues require names for it to work properly, therefore a new QueueNameRequiredException
exception has been added to ensure that queues that need at least one queue name have them.
Cross-platform and improved queue suport
This release introduces two major improvements to Task Worker.
Cross Platform
Tasks are now serialized to JSON so that other languages can pick them up and perform them (see README).
Queue support
Task Worker can now use MySQL (renamed from DatabaseQueue), RabbitMQ, Redis, and Synchronous queues.
Work until empty
You can now set a maximum task limit for a worker and also say work until the queue is empty.
Cache simplified
Switched to using psr/simple-cache rather than psr/cache
First major release
I introduce task-worker, a generic background task worker which currently supports MySQL database and synchronous queues.