Skip to content

Commit

Permalink
Increased request timeout to 60 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
jtroberts committed Mar 4, 2025
1 parent 863db1c commit da282b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion process_winds.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def process_ecmwf(projwin, date, time, output_dir, format):
download_file]
with open(output_file, 'w') as f:
print(' '.join(grib2json_commands))
subprocess.run(grib2json_commands, stdout=f, text=True)
subprocess.run(grib2json_commands, stdout=f, text=True, timeout=60)
print('Created', output_file)

return output_file
Expand Down
2 changes: 2 additions & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def main():
host='0.0.0.0',
port=8104,
server='gunicorn',
timeout=60,
keyfile='/certs/key.pem',
certfile='/certs/cert.pem')
else:
Expand All @@ -92,6 +93,7 @@ def main():
host='0.0.0.0',
port=8104,
server='gunicorn',
timeout=60,
debug=True,
reloader=True)

Expand Down

0 comments on commit da282b8

Please sign in to comment.