| 12345678910111213141516171819202122232425262728 | 
							- #!/usr/bin/env python
 
- from celery.bin import celeryd
 
- WINDOWS_MESSAGE = """
 
- The celeryd command does not work on Windows.
 
- Instead, please use:
 
-     ..> python -m celery.bin.celeryd
 
- You can also supply arguments:
 
-     ..> python -m celery.bin.celeryd --concurrency=10 --loglevel=DEBUG
 
- """
 
- def main():
 
-     if sys.platform == "win32":
 
-         print(WINDOWS_MESSAGE)
 
-         sys.exit()
 
-     options = celeryd.parse_options(sys.argv[1:])
 
-     celeryd.run_worker(**vars(options))
 
- if __name__ == "__main__":
 
-     main()
 
 
  |