This commit is contained in:
as2252258@163.com
2021-04-16 00:39:23 +08:00
parent c61583f2d5
commit 3a404d6783
+1 -1
View File
@@ -183,7 +183,7 @@ abstract class Crontab extends BaseObject
private function recover() private function recover()
{ {
$redis = Snowflake::app()->getRedis(); $redis = Snowflake::app()->getRedis();
if (!$redis->exists('stop:crontab:' . $this->getName())) { if ($redis->exists('stop:crontab:' . $this->getName())) {
$redis->del('crontab:' . $this->getName()); $redis->del('crontab:' . $this->getName());
$redis->del('stop:crontab:' . $this->getName()); $redis->del('stop:crontab:' . $this->getName());
} else { } else {