3 ms·
I think it’s really important to understand task queues and workers but my experience working with these particular tools isn’t exactly fun. I inherited a syste
by memco 6y ago
I think it’s really important to understand task queues and workers but my experience working with these particular tools isn’t exactly fun. I inherited a system built on celery, rabbitmq and nameko I’d be interested to hear how people setup their systems to debug and test new tasks. I’m currently using manually added psb.set_trace to telnet in to a debugging session, but I’d prefer to use an IDE so I can modify code while debugging. Anyone have any tips? One thing I would caution against is putting the business logic in the task logic. This is obviously up to whoever set up the tasks but it seems like most of the tutorials don’t mention how painful this can make testing especially once you start making chains, chords and sub tasks.
- rukittenme 6y agoFor testing you can set "CELERY_ALWAYS_EAGER" to "True" in your config.