You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client is sending to the "celery" queue, and apparently that queue is being emptied by the worker. However, the function "registra" is not called. Any idea?
The text was updated successfully, but these errors were encountered:
JJ
added a commit
to JJ/slack-bot-platzi
that referenced
this issue
Mar 6, 2019
@JJ, I was just scratching my head over the same issue. After adding some debug code, I noticed that unmarshalling failed near amqp_broker.go:195 due to different fields.
Then I noticed that I didn't have CELERY_TASK_PROTOCOL=1 in my Python client. I don't see it in your script either. Maybe worth checking.
This is is not a bug. As @m3nu mentioned, the python client have to set at least CELERY_TASK_PROTOCOL=1 in client side config to catch the job by gocelery worker. README describes about it in detail.
So simply add the config options, here is a simpler example.
$ go run main.go
amqp://guest@127.0.0.1
Arranca el worker
uno
map[uno:1]
uno
map[uno:2]
uno
map[uno:3]
dos
map[dos:1 uno:3]
dos
map[dos:2 uno:3]
tres
map[dos:2 tres:1 uno:3]
I have created this example, taken from the (1 day old) README:
I'm using this Python client:
The client is sending to the "celery" queue, and apparently that queue is being emptied by the worker. However, the function "registra" is not called. Any idea?
The text was updated successfully, but these errors were encountered: