hussein-awala commented on code in PR #30426:
URL: https://github.com/apache/airflow/pull/30426#discussion_r1213707355


##########
tests/executors/test_celery_executor.py:
##########
@@ -248,6 +249,22 @@ def test_cleanup_stuck_queued_tasks(self, mock_fail):
         assert app.control.revoke.called_with("231")
         assert mock_fail.called_once()
 
+    @conf_vars({("celery", "result_backend_engine_options"): '{"pool_recycle": 
1800}'})
+    @mock.patch("celery.Celery")
+    def test_result_backend_engine_options(self, mock_celery):
+        import importlib
+
+        from airflow.config_templates import default_celery
+
+        # relaod celery conf to apply the new config
+        importlib.reload(default_celery)
+        # reload celery_executor to recreate the celery app with new config
+        importlib.reload(celery_executor)

Review Comment:
   I just updated it



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to