Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python repeating scheduler

import schedule
import time

def job():
   print("I'm working...")

schedule.every(10).minutes.do(job)
schedule.every().hour.do(job)
schedule.every().day.at("10:30").do(job)

while 1:
   schedule.run_pending()
   time.sleep(1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #repeating #scheduler
ADD COMMENT
Topic
Name
2+2 =