mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-04 05:48:11 +08:00
Fixes deprecation
This commit is contained in:
+1
-1
@@ -212,7 +212,7 @@ class Sentinel:
|
|||||||
if process.timer.value == 0:
|
if process.timer.value == 0:
|
||||||
# only need to terminate on timeout, otherwise we risk destabilizing the queues
|
# only need to terminate on timeout, otherwise we risk destabilizing the queues
|
||||||
process.terminate()
|
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:
|
elif int(process.timer.value) == -2:
|
||||||
logger.info(_(f"recycled worker {process.name}"))
|
logger.info(_(f"recycled worker {process.name}"))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user