Skip to content

Instantly share code, notes, and snippets.

@callhub
Created February 3, 2014 08:37
Show Gist options
  • Save callhub/8780579 to your computer and use it in GitHub Desktop.
Save callhub/8780579 to your computer and use it in GitHub Desktop.
Retrying a Celery Task at a later time
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