diff --git a/queue_job/utils.py b/queue_job/utils.py index 66b0430c3..d037b8b53 100644 --- a/queue_job/utils.py +++ b/queue_job/utils.py @@ -4,6 +4,8 @@ import logging import os +from odoo import tools + _logger = logging.getLogger(__name__) @@ -17,5 +19,6 @@ def must_run_without_delay(env): return True if env.context.get("queue_job__no_delay"): - _logger.info("`queue_job__no_delay` ctx key found. NO JOB scheduled.") + if not tools.config["test_enable"]: + _logger.info("`queue_job__no_delay` ctx key found. NO JOB scheduled.") return True