改名
This commit is contained in:
@@ -202,6 +202,9 @@ abstract class Crontab implements PipeMessage
|
|||||||
$redis->hSet(self::WAIT_END, $name_md5, static::getSerialize($this));
|
$redis->hSet(self::WAIT_END, $name_md5, static::getSerialize($this));
|
||||||
|
|
||||||
call_user_func([$this, 'process']);
|
call_user_func([$this, 'process']);
|
||||||
|
|
||||||
|
$this->execute_number += 1;
|
||||||
|
|
||||||
$redis->hDel(self::WAIT_END, $name_md5);
|
$redis->hDel(self::WAIT_END, $name_md5);
|
||||||
} catch (\Throwable $throwable) {
|
} catch (\Throwable $throwable) {
|
||||||
$this->application->addError($throwable, 'throwable');
|
$this->application->addError($throwable, 'throwable');
|
||||||
@@ -214,8 +217,7 @@ abstract class Crontab implements PipeMessage
|
|||||||
*/
|
*/
|
||||||
public function afterExecute()
|
public function afterExecute()
|
||||||
{
|
{
|
||||||
$aot = $this->isRecover();
|
if ($this->isRecover() !== 999) {
|
||||||
if ($aot !== 999) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$redis = $this->application->getRedis();
|
$redis = $this->application->getRedis();
|
||||||
|
|||||||
Reference in New Issue
Block a user