celeryd 534 B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env python
  2. import sys
  3. from celery.bin import celeryd
  4. WINDOWS_MESSAGE = """
  5. The celeryd command does not work on Windows.
  6. Instead, please use:
  7. ..> python -m celery.bin.celeryd
  8. You can also supply arguments:
  9. ..> python -m celery.bin.celeryd --concurrency=10 --loglevel=DEBUG
  10. """
  11. def main():
  12. if sys.platform == "win32":
  13. sys.stderr.write(WINDOWS_MESSAGE)
  14. sys.exit()
  15. celeryd.main()
  16. if __name__ == "__main__":
  17. import multiprocessing
  18. multiprocessing.freeze_support()
  19. main()