README.rst 647 B

12345678910111213141516171819202122232425262728293031323334353637
  1. ======================================
  2. Example Python project using Celery
  3. ======================================
  4. Modules
  5. -------
  6. * celeryconfig.py
  7. The celery configuration module.
  8. * tasks.py
  9. Tasks are defined in this module. This module is automatically
  10. imported by the worker because it's listed in
  11. celeryconfig's `CELERY_IMPORTS` directive.
  12. * test.py
  13. Simple test program running tasks.
  14. Running
  15. -------
  16. Open up two terminals, in the first you run:
  17. $ celeryd --loglevel=INFO
  18. In the other you run the test program:
  19. $ python ./test.py
  20. Voila, you've executed some tasks!