Schedule to run another script
Open
- Dominant language
- Python
- Stars
- 12.3k
- Forks
- 999
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I am trying to write a script that will call two different python scripts I've already written in the same directory. Below is my code. The scripts run the first time, but never again after that.
`import jobone
import jobtwo
import schedule
import time
def firstjob():
jobone
print("Job one is completed")
def secondjob():
jobtwo
print("Job two is completed")
schedule.every(3).minute.do(firstjob)
schedule.every(5).minute.do(secondjob)
while True:
schedule.run_pending()
time.sleep(1)`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.