Skip to content

Commit

Permalink
update cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Jun 2, 2024
1 parent 26a7e6a commit b113b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/primary_cron_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def run_cron_heatmap():

def run_cron_quote():
week = datetime.today().weekday()
if week <= 6:
if week <= 4:
subprocess.run(["python3", "cron_quote.py"])
command = ["sudo", "rsync", "-avz", "-e", "ssh", "/root/backend/app/json/quote", f"root@{useast_ip_address}:/root/backend/app/json"]
subprocess.run(command)
Expand Down Expand Up @@ -197,7 +197,7 @@ def run_historical_price():

def run_one_day_price():
week = datetime.today().weekday()
if week <= 6:
if week <= 4:
subprocess.run(["python3", "cron_one_day_price.py"])
command = ["sudo", "rsync", "-avz", "-e", "ssh", "/root/backend/app/json/one-day-price/", f"root@{useast_ip_address}:/root/backend/app/json/one-day-price/"]
subprocess.run(command)
Expand Down

0 comments on commit b113b02

Please sign in to comment.