Mihaiii commited on
Commit
a9f1f12
·
verified ·
1 Parent(s): 466eeae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -1,14 +1,7 @@
1
  import subprocess
2
  from fastapi import FastAPI
3
- from concurrent.futures import ThreadPoolExecutor
4
 
5
- app = FastAPI()
6
-
7
- def start_worker():
8
- subprocess.run(["python3", "TimeStampBuddy/cron_processor.py"])
9
-
10
- executor = ThreadPoolExecutor(max_workers=1)
11
- executor.submit(start_worker)
12
 
13
  @app.get("/")
14
  def greet_json():
 
1
  import subprocess
2
  from fastapi import FastAPI
 
3
 
4
+ subprocess.Popen(["python3", "TimeStampBuddy/cron_processor.py"])
 
 
 
 
 
 
5
 
6
  @app.get("/")
7
  def greet_json():