fixed some issues preventing the programm to start (...)
This commit is contained in:
parent
11a7d6c23c
commit
5c23097873
|
@ -27,9 +27,9 @@ if secret == "":
|
||||||
"""
|
"""
|
||||||
def daily_command():
|
def daily_command():
|
||||||
subprocess.Popen(["git",'pull'])
|
subprocess.Popen(["git",'pull'])
|
||||||
subprocess.Popen(["pkill",'-9', "chrome"])
|
subprocess.Popen(["pkill -9 chrome"])
|
||||||
subprocess.Popen(["pkill",'-9', "Xvfb"])
|
subprocess.Popen(["pkill -9 Xvfb"])
|
||||||
subprocess.Popen(["pkill",'-9', "undetected_chromedriver"])
|
subprocess.Popen(["pkill -9 undetected_chromedriver"])
|
||||||
|
|
||||||
|
|
||||||
scheduler = BackgroundScheduler()
|
scheduler = BackgroundScheduler()
|
||||||
|
@ -46,7 +46,7 @@ scheduler.add_job( # on relance le job
|
||||||
def start_ms(i):
|
def start_ms(i):
|
||||||
print("\033[32m" + f"Starting config {i}" + "\033[0m")
|
print("\033[32m" + f"Starting config {i}" + "\033[0m")
|
||||||
log = open(f"/app/MsRewards-Reborn/user_data/logs/{i}.txt", 'a') # so that data written to it will be appended
|
log = open(f"/app/MsRewards-Reborn/user_data/logs/{i}.txt", 'a') # so that data written to it will be appended
|
||||||
subprocess.Popen(["python3",'-u' ,"/app/MsRewards-Reborn/V6.py", "-c", i], stdout=log, stderr=log, shell=True)
|
subprocess.Popen([f"python3 -u /app/MsRewards-Reborn/V6.py -c {i}"], stdout=log, stderr=log, shell=True)
|
||||||
log.close()
|
log.close()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue