Python Scheduler Cron Style

PYTHON 2 weeks ago 697 views Intermediate
S

sujeetkumar713

21 public snippets
697 Views
0 Comments
0 Saves

Description

Python task scheduler cron style automation example.
Python Scheduler Cron Style.py
import schedule,time

def job():
    print('Running task')

schedule.every(5).seconds.do(job)

while True:
    schedule.run_pending()
    time.sleep(1)

Comments (0)

Add Comment

No comments yet. Be the first to comment!