From 7f5b7b4c9523da3b8a3b774823d70dacf1d81651 Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Fri, 23 Aug 2024 11:44:30 +0200 Subject: [PATCH] [IMP] queue_job: Don't raise a warning for valid context As the 'queue_job__no_delay' context key is the valid one to use, don't raise warnings during tests, but log it as information level. --- queue_job/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue_job/utils.py b/queue_job/utils.py index 5134cd1068..4b228dcc07 100644 --- a/queue_job/utils.py +++ b/queue_job/utils.py @@ -36,5 +36,5 @@ def must_run_without_delay(env): return True if env.context.get("queue_job__no_delay"): - _logger.warning("`queue_job__no_delay` ctx key found. NO JOB scheduled.") + _logger.info("`queue_job__no_delay` ctx key found. NO JOB scheduled.") return True