Hacker News new | ask | show | jobs
by nurettin 2524 days ago
AFAIK, celery doesn't provide a message passing bus between main process and sub-processes.
2 comments

Well, it technically does (through its invocations of billiard, it's multiprocessing fork), but it's pretty ad hoc and not exposed for much user control. So you're basically right, I'm just being pedantic.
Yes ok initial parameter passing and gathering results may be considered a message bus. I was going to mention that, but I got lazy.
Don't understand that clearly. Can't I put something in the queue in the main process and read it from subprocesses ?
Is that going to provide bi-directional communication between main and subprocesses while they are running? If it does, disregard what I wrote.
Sure. You can put results in an "output" queue (which is backed by Redis) that is read by the main application.

Incidentally this is how you do a notification on your UI .