From 3e41938751e3735c3a1ad1eccbd5c0d2338a4833 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Mon, 16 Sep 2024 18:01:14 +0200 Subject: [PATCH] Fix wrong celery_app config on job and workflow handlers --- scripts/galaxy_main.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/galaxy_main.py b/scripts/galaxy_main.py index 02ef73928604..6df557851317 100755 --- a/scripts/galaxy_main.py +++ b/scripts/galaxy_main.py @@ -87,8 +87,15 @@ def load_galaxy_app(config_builder, config_env=False, log=None, attach_to_pools= kwds = config_builder.app_kwds() kwds = load_app_properties(**kwds) from galaxy.app import UniverseApplication + from galaxy.celery import ( + celery_app, + config_celery_app, + ) app = UniverseApplication(global_conf=config_builder.global_conf(), attach_to_pools=attach_to_pools, **kwds) + # Update celery app, which might not have taken into account the config file if set via the `-c` argument. + config_celery_app(app.config.celery_conf, celery_app) + app.database_heartbeat.start() app.application_stack.log_startup() return app