Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.42 KB

README.md

File metadata and controls

60 lines (40 loc) · 1.42 KB

Celery Playgroud

Code Linting

My primary playground for doing Celery trials. Hence, the name.

Contents

  • Workflow Primitives
    • chord: Performing a task after all tasks have been completed
    • 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 <module> worker --loglevel=INFO
    
  3. Run the producer:

    $ python -m <module>.producer
    

License

This is free and unencumbered software released into the public domain. For more see LICENSE file.