Created
February 3, 2014 08:37
-
-
Save callhub/8780579 to your computer and use it in GitHub Desktop.
Retrying a Celery Task at a later time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ret = is_rate_okay(keys=[rate_key], | |
args=[call_count, max_cps]) | |
if ret is None: | |
plivo_call.retry(countdown=randint(60,120)) | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment