#1532 Schedule event handler to queue from internal
Merged 4 years ago by cqi. Opened 4 years ago by cqi.
cqi/fm-orchestrator schedule-fake-events  into  v3

file modified
+3
@@ -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.

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.

:thumbsup: but this conflicts with #1537

rebased onto 31d53ba

4 years ago

Pull-Request has been merged by cqi

4 years ago