Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion queue_job/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import logging
import os

from odoo import tools

_logger = logging.getLogger(__name__)


Expand All @@ -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
Loading