31d53ba
@@ -115,6 +115,9 @@
STREAM_SUFFIXES = {r"^el\d+\.\d+\.\d+\.z$": 0.1}
+ # Ensures task.delay executes locally instead of scheduling a task to a queue.
+ CELERY_TASK_ALWAYS_EAGER = True
+
class ProdConfiguration(BaseConfiguration):
pass
@@ -44,7 +44,7 @@
"""
Schedule execution of `handler` with `arguments`.
- self.enter(0, 0, handler, arguments)
+ self.enter(0, 0, handler.delay, arguments)
def run(self):
Signed-off-by: Chenxiong Qi cqi@redhat.com
Build #664 failed (commit: 6c176fbb299950a0cbeebee1d2e0ebb0e4a1fcca). Rebase or make new commits to rebuild.
This should be in backend_config.py and only for localbuild settings.
CELERY_TASK_ALWAYS_EAGER = True is not added for local build. It's added in the TestConfiguration for running tests.
CELERY_TASK_ALWAYS_EAGER = True
TestConfiguration
:thumbsup: but this conflicts with #1537
rebased onto 31d53ba
:+1:
Pull-Request has been merged by cqi
Signed-off-by: Chenxiong Qi cqi@redhat.com