#!../flask/bin/python
from apscheduler.scheduler import Scheduler

sched = Scheduler()

@sched.interval_schedule(seconds=0.5)
def check_pins_job():
    print 'Updating...'

@sched.cron_schedule(day_of_week='mon-fri', hour=17)
def scheduled_job():
    print 'This job is run every weekday at 5pm.'

sched.start()

while True:
    pass


