modify
This commit is contained in:
@@ -222,6 +222,10 @@ abstract class Crontab extends BaseObject
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$redis = Snowflake::app()->getRedis();
|
$redis = Snowflake::app()->getRedis();
|
||||||
|
if ($redis->exists('stop:crontab:' . $this->getName())) {
|
||||||
|
$redis->del('stop:crontab:' . $this->getName());
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if ($this->isExit()) {
|
if ($this->isExit()) {
|
||||||
return $redis->del('crontab:' . $this->getName());
|
return $redis->del('crontab:' . $this->getName());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user