girder_worker
girder_worker copied to clipboard
girder_plugin settings for worker.api_url, worker.broker, worker.backend are not being picked up correctly
I think there may be two issues here.
First, if you use a girder_worker task with .delay
, it is using the Celery app loaded from the girder_worker config files NOT the settings in the girder_worker.girder_plugin values. The app is instantiated by girder_worker.app
not girder_worker.girder_plugin.celery
.
Second, when the settings are changed in Girder, the event handler in girder_worker/girder_plugin/event_handlers.py
will reset a local _celeryapp
value, but I don't think this will reset it in the girder_worker.girder_plugin.celery
module.
@kotfic Either I've misconfigured things, or girder_worker on girder with a non-local rabbitmq instance requires the worker.*.cfg to be configured on both the worker and girder machines.
@manthey Sorry i'm having a little trouble refreshing on the origin of this issue. Is it possible to link to the code where you're seeing the unexpected behavior?