This commit is contained in:
as2252258@163.com
2021-03-22 00:17:27 +08:00
parent 10035f28e6
commit c4aae52531
+1 -1
View File
@@ -42,7 +42,7 @@ class CrontabProcess extends Process
$redis = Snowflake::app()->getRedis();
$range = $redis->zRangeByScore(ACrontab::CRONTAB_KEY, 0, $startTime);
$range = $redis->zRangeByScore(ACrontab::CRONTAB_KEY, '0', (string)$startTime);
$redis->zRemRangeByScore(ACrontab::CRONTAB_KEY, 0, $startTime);
foreach ($range as $value) {
$crontab = $redis->get('crontab:' . md5($value));