Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axiaoxin/celery-periodic-tasks-demo
celery beat demo
https://github.com/axiaoxin/celery-periodic-tasks-demo
Last synced: 12 days ago
JSON representation
celery beat demo
- Host: GitHub
- URL: https://github.com/axiaoxin/celery-periodic-tasks-demo
- Owner: axiaoxin
- Created: 2017-12-04T08:16:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-05T02:57:25.000Z (about 7 years ago)
- Last Synced: 2024-11-07T13:55:26.383Z (2 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Celery periodic task demo
### Run
cd into the root path of the project
- run a celery worker to consume the tasks
celery worker -A app -l debug
- run a celery beat to produce the tasks periodically
celery beat -A app -l debug
### Add task
1. Write the tasks code.
Write the new task code like `print_tasks.py` in the tasks directory.
For more information
2. Update `config.py`
Add the new task script into `imports` list, then set the new beat schedules like the `print_tasks`
For more information