This commit is contained in:
as2252258@163.com
2021-04-16 00:32:16 +08:00
parent 631e34f8f6
commit 5cb3296982
+2
View File
@@ -37,6 +37,8 @@ class Producer extends Component
$tickTime = time() + $crontab->getTickTime();
$redis->del('stop:crontab:' . $name, 120);
var_dump($tickTime);
$result = $redis->zAdd(self::CRONTAB_KEY, $tickTime, $name);
if ($result) {
$redis->set('crontab:' . $name, swoole_serialize($crontab));