Skip to content

sergeyklay/celerypg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.