We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64ef5c5 commit b43c482Copy full SHA for b43c482
task_scheduler/task_scheduler.py
@@ -1,12 +1,15 @@
1
import time
2
import schedule
3
4
+
5
def task():
6
print("Task is being executed")
7
8
9
def task2():
10
print("Another task is being executed")
11
12
13
def run_tasks():
14
schedule.every(1).minutes.do(task)
15
schedule.every(2).minutes.do(task2)
@@ -15,5 +18,6 @@ def run_tasks():
18
schedule.run_pending()
16
19
time.sleep(1)
17
20
21
22
if __name__ == "__main__":
23
run_tasks()
0 commit comments