Skip to content

Commit

Permalink
Fix wrong celery_app config on job and workflow handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Sep 16, 2024
1 parent ad9b4e7 commit 3e41938
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/galaxy_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e41938

Please sign in to comment.