pvanand commited on
Commit
c8acc2b
·
verified ·
1 Parent(s): 9ea09ee

Create scrpt.py

Browse files
Files changed (1) hide show
  1. app2/scrpt.py +9 -0
app2/scrpt.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import time
2
+ import os
3
+
4
+ print("Script started")
5
+ open("/tmp/healthy", "w").close() # Create a file to indicate the script is running
6
+
7
+ while True:
8
+ print("Script is running")
9
+ time.sleep(60)