You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Event "onWorkerStop" happens in worker processes only. It won't happen in task worker processes.
Event "onWorkerExit" happens only when option \Swoole\Constant::OPTION_RELOAD_ASYNC is turned on.
this could be problematic if one needs to do some work on task worker exit - like shutdown connection pool for example.
Could probably be easily addressed in Mezzio\Swoole\SwooleRequestHandlerRunner:
Feature Request
Summary
At the momen mezzio/swoole supports some swoole events - however not all.
Specifically workerstop is supported, but not workerexit for example.
Per docs - workerstop is not triggering for task processes: https://github.com/deminy/swoole-by-examples/blob/master/examples/servers/server-events.php.
this could be problematic if one needs to do some work on task worker exit - like shutdown connection pool for example.
Could probably be easily addressed in Mezzio\Swoole\SwooleRequestHandlerRunner:
The text was updated successfully, but these errors were encountered: