https://github.com/sergeyklay/celerypg
My playground for Celery trials
https://github.com/sergeyklay/celerypg
celery celery-redis celery-task celery-tasks python-celery
Last synced: 12 days ago
JSON representation
My playground for Celery trials
- Host: GitHub
- URL: https://github.com/sergeyklay/celerypg
- Owner: sergeyklay
- License: unlicense
- Created: 2021-09-13T21:45:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-16T22:37:51.000Z (almost 5 years ago)
- Last Synced: 2025-11-16T06:15:12.740Z (7 months ago)
- Topics: celery, celery-redis, celery-task, celery-tasks, python-celery
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Celery Playgroud
[![Code Linting][actions-badge]][actions link]
My primary playground for doing Celery trials. Hence, the name.
## Contents
- **Workflow Primitives**
- [`chord`][workflow]: Performing a task after all tasks have been completed
- [`chain`][chain]: Performing chord with group of chains and a callback at the end
## Prerequisites
To play with this project at your local environment you'll need the following
requirements:
- Python >= 3.7
- Redis or Docker
The project should work the same on the all major systems macOs, Linux,
Windows or WSL.
## Installing
To install all dependencies such as Celery use the pip:
```
$ python -m pip install -r requirements.txt
```
## Run tests
1. Start Redis:
```
$ docker run -d -p 6379:6379 redis
```
2. Run the consumer (worker) instance:
```
$ celery -A worker --loglevel=INFO
```
3. Run the producer:
```
$ python -m .producer
```
## License
This is free and unencumbered software released into the public domain.
For more see [LICENSE][license] file.
[actions link]: https://github.com/sergeyklay/celerypg/actions/workflows/cs.yml
[actions-badge]: https://github.com/sergeyklay/celerypg/actions/workflows/cs.yml/badge.svg
[workflow]: https://github.com/sergeyklay/celerypg/tree/master/workflow
[chain]: https://github.com/sergeyklay/celerypg/tree/master/chain
[license]: https://github.com/sergeyklay/celerypg/blob/master/LICENSE