girder_worker icon indicating copy to clipboard operation
girder_worker copied to clipboard

girder_plugin settings for worker.api_url, worker.broker, worker.backend are not being picked up correctly

Open kotfic opened this issue 5 years ago • 3 comments

kotfic avatar Mar 25 '19 15:03 kotfic

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.

manthey avatar Jan 13 '20 21:01 manthey

@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 avatar Jan 13 '20 21:01 manthey

@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?

kotfic avatar Jan 14 '20 14:01 kotfic