Created
August 5, 2018 11:59
-
-
Save efi-mk/0d3a21556f7b47423b18cca74e3bc3d1 to your computer and use it in GitHub Desktop.
S3 scheduler
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
scheduler = Scheduler(...) | |
def check_scheduled_events(): | |
scheduler.handle() |
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
{ | |
"production": { | |
... | |
"events": [ | |
{ | |
"function": "utils.s3_events.check_scheduled_events", | |
"expression": "rate(1 minute)" | |
} | |
], | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment