Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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