Closed staabm closed 1 year ago
side-note: the suggested message seems to hint about a method call which is deprecated.
TaskException::getWorkerTrace()
tells me to use getOriginalTraceAsString()
instead
Worker::enqueue()
returns a promise that can only fail with an instance of TaskFailureException
or TaskFailureError
, which both implement TaskFailureThrowable
. The exception thrown by a Task
is wrapped in a TaskFailure
object and sent back to the parent, then re-thrown as one of those two classes.
I'm not sure you're actually using 1.3
, as the exception message should now suggest using getOriginalTrace()
.
Closing as this issue is old and has not received further feedback. Please try v2 of this library when you get a chance, the API and error handling has been improved significantly.
with my current code in https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/4838 at commit 7603b4b I am running into the following Exception:
I am not sure what this error is trying to tell me:
nowhere in the codebase I am using
TaskFailure
orTaskException
. where do I need to catch/handle the mentionedTaskFailure
(orTaskException
?) to invokegetWorkerTrace()
on it?