I've set up a 'ghetto queue' for a django project.  The job information is 
stored in the django DB and I have a script that is run via cron which 
periodically checks the DB for new jobs and processes them.  Now I want to 
move the processing off to a different machine so I'm looking into Celery. 
 What I'm not sure about is what are the requirements of the workers.  Do 
they need to have the code they are going to run already installed or is it 
somehow pickled and sent to the worker?  My current script checks the DB 
for a job, runs the job, and then inserts the data into the django DB.  I 
guess this won't work with Celery because the remote workers won't have 
access to the django DB.  I guess the celery tasks should accept data and 
only return data - all the interaction with the database should happen on 
the web server hosting the django app, right?
Thanks
Mike
-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/zdiVxf4FrIMJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to