https://github.com/pythonicninja/test_celery
https://github.com/pythonicninja/test_celery
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/pythonicninja/test_celery
- Owner: PythonicNinja
- License: mit
- Created: 2019-03-21T10:30:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T10:50:26.000Z (over 7 years ago)
- Last Synced: 2025-02-05T04:46:08.667Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# test_celery
```
virtualenv env -p python3
pip install celery
```
# run worker
```
celery worker --app celeryd --loglevel DEBUG
```
# add task to worker
```
python tasks.py 2 6
```
or
```
>>> from tasks import *
>>> multiply.apply_async((2, 6))
>>> task = multiply.apply_async((2, 6))
```