0
votes

Summary

  • I am running Celery as a daemon via celeryd (as per instructions)
  • Specified redis as the broker in the configuration file /etc/default/celeryd BROKER_URL="redis://localhost:6379/0"
  • Worker log file indicates that BROKER_URL is being ignored as it is still attempting to connect to the default broker.

ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@localhost:5672//: Error opening socket: a socket error occurred.

Question: Do I need to modify the /etc/init.d/celeryd file beyond the basic template that was provided in the online instructions in order for BROKER_URL to be passed as an argument?

1
Not sure if this helps, but other properties such as CELERY_ACCEPT_CONTENT=["json"] also appear to be getting ignored as the log file continues to warn about W_PICKLE_DEPRECATEDtaygan

1 Answers

0
votes

/etc/default/celeryd is configuration for the daemon, and only these options will go there. You can configure your celery instance with a settings file or by passing arguments when creating the instance.