Comment on Celery – Best PracticesComments−zrail12ySmall typo where you define `CELERY_ROUTES`. `my_taskA` should probably have the routing key `for_task_A`, right?−denibertovicOP12yNot really, that's just the name of the actual task itself ie. "def my_taskA(a, b, c)".−zrail12yThis line `'my_taskA': {'queue': 'for_task_A', 'routing_key': 'for_task_B'},` "for_task_B" should be "for_task_A" to match the CELERY_QUEUES definition. Unless I'm misunderstanding what you're doing, of course.−denibertovicOP12yAh no, you got that one perfectly I just didn't understand what was meant at first. Fixed. Thank you.
Comments
Small typo where you define `CELERY_ROUTES`. `my_taskA` should probably have the routing key `for_task_A`, right?
Not really, that's just the name of the actual task itself ie. "def my_taskA(a, b, c)".
This line `'my_taskA': {'queue': 'for_task_A', 'routing_key': 'for_task_B'},` "for_task_B" should be "for_task_A" to match the CELERY_QUEUES definition. Unless I'm misunderstanding what you're doing, of course.
Ah no, you got that one perfectly I just didn't understand what was meant at first. Fixed. Thank you.