This commit is contained in:
as2252258@163.com
2021-03-26 01:25:06 +08:00
parent 3eafeb52ed
commit f7d6afbc84
+2 -2
View File
@@ -32,8 +32,8 @@ class Consumer extends Process
while (true) {
[$value, $startTime] = swoole_unserialize($process->read());
$crontab = $redis->get('crontab:' . md5($value));
$redis->del('crontab:' . md5($value));
$crontab = $redis->get($value);
$redis->del($value);
if (empty($crontab) || !($crontab = swoole_unserialize($crontab))) {
continue;
}