Skip to content

Releases: pdscopes/task-worker

v2.1.0

24 Jun 12:21
Compare
Choose a tag to compare

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

05 Jan 10:37
Compare
Choose a tag to compare

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

05 Oct 10:16
Compare
Choose a tag to compare

You can now set a maximum task limit for a worker and also say work until the queue is empty.

Cache simplified

02 Aug 10:01
Compare
Choose a tag to compare

Switched to using psr/simple-cache rather than psr/cache

First major release

02 Aug 10:02
Compare
Choose a tag to compare

I introduce task-worker, a generic background task worker which currently supports MySQL database and synchronous queues.