Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python schedule task every hour

from apscheduler.schedulers.blocking import BlockingScheduler

def some_job():
    print "Decorated job"

scheduler = BlockingScheduler()
scheduler.add_job(some_job, 'interval', hours=1)
scheduler.start()
 
PREVIOUS NEXT
Tagged: #python #schedule #task #hour
ADD COMMENT
Topic
Name
1+3 =