Skip to content

natw/celery_requeue_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

In one shell, run:

celery worker -A requeue

In another, run

python requeue.py

to poll using result.ready().

Run

python requeue.py wait

to just sleep for longer than the task takes.

When using result.ready(), the result is requeued after calling result.get, so it'll just sit around until it expires. When just sleeping, the result message is collected as you'd expect and the result queue disappears.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages