Created
June 30, 2021 12:29
Star
You must be signed in to star a gist
Task Queue Subexample - Task Config
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
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