Y
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
zbentley
2524 days ago
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.
link
nurettin
2524 days ago
Yes ok initial parameter passing and gathering results may be considered a message bus. I was going to mention that, but I got lazy.
link
sandGorgon
2524 days ago
Don't understand that clearly. Can't I put something in the queue in the main process and read it from subprocesses ?
link
nurettin
2524 days ago
Is that going to provide bi-directional communication between main and subprocesses while they are running? If it does, disregard what I wrote.
link
sandGorgon
2524 days ago
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 .
link