kill -9杀死正在运行任务的woker之后,定时任务不运行

当celery有正在执行的任务时,使用kill -9命令杀死celery的woker之后,任务不再运行。原因是官方文档里celery woker safely stop:

Can I safely shut down the worker?

Also make sure you kill the main worker process only, not any of its child processes. You can direct a kill signal to a specific child process if you know the process is currently executing a task the worker shutdown is depending on, but this also means that a WorkerLostError state will be set for the task so the task won’t run again.

你可能感兴趣的:(调度工具)