warning('manager stop.'); $events = Snowflake::app()->event; if ($events->exists(Event::SERVER_MANAGER_STOP)) { $events->trigger(Event::SERVER_MANAGER_STOP, [$server]); } // $runPath = storage(null, 'workerIds'); // foreach (glob($runPath . '/*') as $item) { // if (!file_exists($item)) { // continue; // } // @unlink($item); // } } }