Skip to content

catch workerException #6

@TechAlchemistry

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)
});

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions