This commit is contained in:
as2252258@163.com
2021-03-22 00:19:06 +08:00
parent bd57e36610
commit c592f1cfe6
+4
View File
@@ -6,6 +6,7 @@ namespace Snowflake\Process;
use Snowflake\Crontab;
use Snowflake\Abstracts\Crontab as ACrontab;
use Snowflake\Event;
use Snowflake\Snowflake;
use Swoole\Coroutine;
use Swoole\Coroutine\WaitGroup;
@@ -53,6 +54,7 @@ class CrontabProcess extends Process
$this->dispatch($value);
}, $crontab, $startTime);
}
$redis->release();
});
}
@@ -73,6 +75,8 @@ class CrontabProcess extends Process
}
} catch (\Throwable $exception) {
$this->application->error($exception->getMessage());
} finally {
fire(Event::SYSTEM_RESOURCE_RELEASES);
}
}