mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 03:38:12 +08:00
Schedule event handler to queue from internal
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
This commit is contained in:
@@ -115,6 +115,9 @@ class TestConfiguration(BaseConfiguration):
|
||||
|
||||
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 @@ class Scheduler(sched.scheduler):
|
||||
"""
|
||||
Schedule execution of `handler` with `arguments`.
|
||||
"""
|
||||
self.enter(0, 0, handler, arguments)
|
||||
self.enter(0, 0, handler.delay, arguments)
|
||||
|
||||
def run(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user