This commit is contained in:
as2252258@163.com
2021-04-17 15:45:02 +08:00
parent 393584da26
commit e4d5aba911
+4
View File
@@ -222,6 +222,10 @@ abstract class Crontab extends BaseObject
{
try {
$redis = Snowflake::app()->getRedis();
if ($redis->exists('stop:crontab:' . $this->getName())) {
$redis->del('stop:crontab:' . $this->getName());
return true;
}
if ($this->isExit()) {
return $redis->del('crontab:' . $this->getName());
}