Created
June 30, 2021 12:29
-
-
Save bilalozdemir/12f26c888759123fd22cdf6b72087bcb to your computer and use it in GitHub Desktop.
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