0

I'm trying to get my head around schedule. I've looked at How do I get a Cron like scheduler in Python? and have altered the code but cannot figure out why

import schedule
import time

def job():
    print("I\'m doing the job")

schedule.every().minute.at(":17").do(job)

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

is giving me.

I'm doing the job
I'm doing the job
I'm working...
I'm working...
I'm doing the job
I'm working!
I'm working...
I'm working...
I'm working...
I'm working!
I'm working!
I'm working...
Tim
  • 63
  • 7
  • Where are the `I'm working...` and `I'm working!` messages coming from? It seems like you haven't shown us all the code. – John Gordon Sep 09 '20 at 22:48
  • Hi @JohnGordon that is the crux of it. That is my entire code. Could there be some other issue? – Tim Sep 09 '20 at 22:53
  • The code in the linked post has messages like that. Do you have a copy of that program still running in the background? – John Gordon Sep 10 '20 at 00:47

0 Answers0