Skip to content

Commit 3187a18

Browse files
authored
Merge pull request #3 from NASA-AMMOS/jr-timeout
Increased request timeout to 60 seconds
2 parents 4116396 + da282b8 commit 3187a18

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

process_winds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def process_ecmwf(projwin, date, time, output_dir, format):
165165
download_file]
166166
with open(output_file, 'w') as f:
167167
print(' '.join(grib2json_commands))
168-
subprocess.run(grib2json_commands, stdout=f, text=True)
168+
subprocess.run(grib2json_commands, stdout=f, text=True, timeout=60)
169169
print('Created', output_file)
170170

171171
return output_file

server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def main():
8484
host='0.0.0.0',
8585
port=8104,
8686
server='gunicorn',
87+
timeout=60,
8788
keyfile='/certs/key.pem',
8889
certfile='/certs/cert.pem')
8990
else:
@@ -92,6 +93,7 @@ def main():
9293
host='0.0.0.0',
9394
port=8104,
9495
server='gunicorn',
96+
timeout=60,
9597
debug=True,
9698
reloader=True)
9799

0 commit comments

Comments
 (0)