Skip to content

Instantly share code, notes, and snippets.

@efi-mk
Created August 5, 2018 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efi-mk/0d3a21556f7b47423b18cca74e3bc3d1 to your computer and use it in GitHub Desktop.
Save efi-mk/0d3a21556f7b47423b18cca74e3bc3d1 to your computer and use it in GitHub Desktop.
S3 scheduler
scheduler = Scheduler(...)
def check_scheduled_events():
scheduler.handle()
{
"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