modify
This commit is contained in:
@@ -37,12 +37,12 @@ class OnWorkerStart extends Callback
|
|||||||
*/
|
*/
|
||||||
public function onHandler(Server $server, int $worker_id): void
|
public function onHandler(Server $server, int $worker_id): void
|
||||||
{
|
{
|
||||||
// Coroutine::set([
|
Coroutine::set([
|
||||||
// 'enable_deadlock_check' => false,
|
'enable_deadlock_check' => false,
|
||||||
// 'exit_condition' => function () {
|
// 'exit_condition' => function () {
|
||||||
// return Coroutine::stats()['coroutine_num'] === 0;
|
// return Coroutine::stats()['coroutine_num'] === 0;
|
||||||
// }
|
// }
|
||||||
// ]);
|
]);
|
||||||
putenv('workerId=' . $worker_id);
|
putenv('workerId=' . $worker_id);
|
||||||
|
|
||||||
$get_name = $this->get_process_name($server, $worker_id);
|
$get_name = $this->get_process_name($server, $worker_id);
|
||||||
|
|||||||
Reference in New Issue
Block a user