Skip to content

Storing current time every 10 seconds using Celery and Redis

Notifications You must be signed in to change notification settings

holyamirali/CeleryTest

Repository files navigation

Celery Test

Simple program storing current time on Redis
Using Celery for pushing the task on tasks queue
Using Redis as database
Time will be stored as value of crTime key in redis

how to run

Install Redis from Here.
Install Celery and Redis python libraries using :

pip install celery
pip install redis

Execute the following commands in 3 different terminals :

celery -A task beat -l INFO  
redis-server  
celery -A task worker -l INFO

Execute the following command in redis-cli.exe to get the last stored value :

get crTime

About

Storing current time every 10 seconds using Celery and Redis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages