1234567891011121314151617181920212223242526272829 |
- #!/usr/bin/env python
- import sys
- 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()
|