Skip to content

Commit

Permalink
Increase geoprocessing timeout for HUC-8 subbasin
Browse files Browse the repository at this point in the history
Certain HUC-8s were timing out for subbasin analysis because
of the new hi res streams which take a longer time to process.

This pulls in a new version of the geoprocessing service, which
includes a larger timeout limit of 120s. This is also applied
to the Celery Task Timeout, so the tasks wait for the long
requests.

Incorporates work done in WikiWatershed/mmw-geoprocessing#98
  • Loading branch information
rajadain committed Jan 4, 2022
1 parent 83a5e3e commit 5e4bed0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deployment/ansible/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ docker_compose_version: "1.26.*"
geop_host: "localhost"
geop_port: 8090

geop_version: "5.0.0"
geop_version: "5.1.0"
geop_cache_enabled: 1

nginx_cache_dir: "/var/cache/nginx"
Expand Down
2 changes: 1 addition & 1 deletion src/mmw/mmw/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_env_setting(setting):
# The longest running tasks contain geoprocessing requests
# Keep the task and request time limit above, but in the ballpark of
# https://github.com/WikiWatershed/mmw-geoprocessing/blob/develop/api/src/main/resources/application.conf#L9
CELERY_TASK_TIME_LIMIT = 90
CELERY_TASK_TIME_LIMIT = 120
TASK_REQUEST_TIMEOUT = CELERY_TASK_TIME_LIMIT - 10
# END CELERY CONFIGURATION

Expand Down

0 comments on commit 5e4bed0

Please sign in to comment.