Releases: myclabs/Work
Releases · myclabs/Work
0.4.0
0.3.0
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
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.