This commit is contained in:
as2252258@163.com
2021-02-27 04:53:30 +08:00
parent 6f3508353b
commit 9ea3ee3bd3
+3 -3
View File
@@ -37,12 +37,12 @@ class OnWorkerStart extends Callback
*/
public function onHandler(Server $server, int $worker_id): void
{
// Coroutine::set([
// 'enable_deadlock_check' => false,
Coroutine::set([
'enable_deadlock_check' => false,
// 'exit_condition' => function () {
// return Coroutine::stats()['coroutine_num'] === 0;
// }
// ]);
]);
putenv('workerId=' . $worker_id);
$get_name = $this->get_process_name($server, $worker_id);