mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-15 13:37:56 +08:00
Fixes deprecation
This commit is contained in:
@@ -212,7 +212,7 @@ class Sentinel:
|
||||
if process.timer.value == 0:
|
||||
# only need to terminate on timeout, otherwise we risk destabilizing the queues
|
||||
process.terminate()
|
||||
logger.warn(_(f"reincarnated worker {process.name} after timeout"))
|
||||
logger.warning(_(f"reincarnated worker {process.name} after timeout"))
|
||||
elif int(process.timer.value) == -2:
|
||||
logger.info(_(f"recycled worker {process.name}"))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user