Skip to content

Releases: myclabs/Work

0.4.0

30 May 20:11
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release

Added Beanstalkd support

0.3.0

23 Apr 10:31
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release

Refactoring and reorganization of classes.

Separate interfaces for run() and runAndWait() which makes it much more simple to maintain, and add adapters to backends that don't support runAndWait().

Better tests & more precise code coverage.

0.2.0

21 Oct 09:02
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

Added support for receiving the exception in the error callback:

$error = function (Exception $e) {
    echo "There was an error while completing the operation: "
        . $e->getMessage();
}

$workDispatcher->runBackground($task, 5, null, null, $error);

However the exception will not be the original exception that made the worker error. The reason for that
is that it is complex to serialize an exception and transmit it between the worker and the web request.

It becomes really useful though when using the SimpleWorkDispatcher, as you will get the original exception here.
It can help debugging a lot in a development environment.

0.1.0

11 Oct 12:22
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release

First release.