#### 问题描述
```php
public static function onWorkerStart($worker)
{
Timer::add(5, function () {
if(empty(self::$heartbeat_queue)){
return;
}
StoreWs::where("id", 'in', self::$heartbeat_queue)->update(['heartbeat_time' => time()]);
self::$heartbeat_queue = [];
});
}
```