Skip to content

Instantly share code, notes, and snippets.

View code247's full-sized avatar
🤓

Sagar code247

🤓
  • New York
View GitHub Profile
@code247
code247 / jobs.py
Last active October 21, 2017 21:15
APScheduler example
from apscheduler.schedulers.blocking import BlockingScheduler
from helper import your_function_a, your_function_b
sched = BlockingScheduler()
@sched.scheduled_job('interval', minutes='30')
def print_data():
print("Have a good day!")
@sched.scheduled_job('cron', day_of_week='sat-sun', hour='8-14', minute='0-59/10', timezone='America/New_York')