Skip to content

catch workerException #6

Description

@TechAlchemistry

Will be good if we can catch of the worker exceptions. For example:

$wp = new WorkerPool();
$wp->onWorkerException(function(\Exception $ex, Worker $worker) {
   // there we can handle the exception (logging, restart the task or other)
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions