Skip to content

Commit

Permalink
Temporarily limit VirusTotal deploy to 15 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Oct 16, 2024
1 parent f203039 commit 0db3900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def start_pymultitor(args):

def run_virustotal_updates():
# GitHub Actions has a 6 hour limit, so stop 10 minutes before that.
time_to_stop = min(datetime.now() + timedelta(minutes=60), deploy_start_time + timedelta(hours=6, minutes=-10))
time_to_stop = min(datetime.now() + timedelta(minutes=15), deploy_start_time + timedelta(hours=6, minutes=-10))
if datetime.now() >= time_to_stop:
return None

Expand Down

0 comments on commit 0db3900

Please sign in to comment.