You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/05/19 10:15:58 UTC

[GitHub] [airflow] mik-laj commented on a change in pull request #8909: Fix race in Celery tests by pre-creating result tables

mik-laj commented on a change in pull request #8909:
URL: https://github.com/apache/airflow/pull/8909#discussion_r427189930



##########
File path: tests/executors/test_celery_executor.py
##########
@@ -75,6 +75,17 @@ def _prepare_app(broker_url=None, execute=None):
     patch_app = mock.patch('airflow.executors.celery_executor.app', test_app)
     patch_execute = mock.patch('airflow.executors.celery_executor.execute_command', test_execute)
 
+    backend = test_app.backend
+
+    if hasattr(backend, 'ResultSession'):

Review comment:
       Yes. We can also keep this data in non-DatabaaseBackend.
   https://github.com/celery/celery/tree/master/celery/backends




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org