Skip to content

Instantly share code, notes, and snippets.

@ryandotclair
Last active December 15, 2015 21:52
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 ryandotclair/ecf874f224e845801360 to your computer and use it in GitHub Desktop.
Save ryandotclair/ecf874f224e845801360 to your computer and use it in GitHub Desktop.
apscheduler example
....
from apscheduler.schedulers.blocking import BlockingScheduler
def generate_payload(symmetrix_id, storage_group_id, unix_ym, unix_midnight):
....
def main():
....
main()
scheduler = BlockingScheduler(timezone='utc')
scheduler.add_job(main,'interval',hours=24)
scheduler.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment