Skip to content

Instantly share code, notes, and snippets.

@bilalozdemir
Created June 30, 2021 12:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save bilalozdemir/12f26c888759123fd22cdf6b72087bcb to your computer and use it in GitHub Desktop.
Task Queue Subexample - Task Config
app.conf.beat_schedule = {
'renew-expired-subscriptions': {
'task': 'runner.renew_expired_subscriptions',
'schedule': 5.0, # Runs in every 5 seconds
#'schedule': crontab(minute=5) # Runs in every 5 minutes
#'args': (arg_1, arg_2, ...), # Run the function with arguments
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment