We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16dafbe commit 2007fa9Copy full SHA for 2007fa9
src/bootstrap/Heartbeat.php
@@ -25,6 +25,10 @@ public static function start(Worker $worker)
25
}
26
Timer::add(HEARTBEAT_TIME, function () use ($database) {
27
foreach ($database ?? [] as $connectionName => $value) {
28
+ //默认没有配置也是加入心跳
29
+ if (isset($value['is_beat']) && ! $value['is_beat']) {
30
+ continue;
31
+ }
32
HeroDB::connection($connectionName)->select('select 1 limit 1');
33
34
});
0 commit comments