Skip to content

Releases: pdscopes/task-worker

v2.1.0

Choose a tag to compare

@pdscopes pdscopes released this 24 Jun 12:21

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

Choose a tag to compare

@pdscopes pdscopes released this 05 Jan 10:37

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

Choose a tag to compare

@pdscopes pdscopes released this 05 Oct 10:16

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

Cache simplified

Choose a tag to compare

@pdscopes pdscopes released this 02 Aug 10:01

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

First major release

Choose a tag to compare

@pdscopes pdscopes released this 02 Aug 10:02

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