Skip to content

Commit

Permalink
[IMP] queue_job: Don't raise a warning for valid context
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rousseldenis committed Aug 23, 2024
1 parent 7e5efe7 commit 7f5b7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queue_job/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7f5b7b4

Please sign in to comment.