-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Adaguc call async. #345
Conversation
Also fix the postgres volume location in the docker compose file.
@@ -5,11 +5,12 @@ ADAGUC_PORT=443 | |||
ADAGUC_DATA_DIR=${HOME}/adaguc-docker/adaguc-data | |||
ADAGUC_AUTOWMS_DIR=${HOME}/adaguc-docker/adaguc-autowms | |||
ADAGUC_DATASET_DIR=${HOME}/adaguc-docker/adaguc-datasets | |||
ADAGUC_NUMPARALLELPROCESSES=8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please set this to 4
@@ -259,8 +259,8 @@ async def get_collection_position( | |||
} | |||
|
|||
|
|||
@cached(cache=TTLCache(maxsize=1024, ttl=60)) | |||
def get_collectioninfo_for_id( | |||
# @cached(cache=TTLCache(maxsize=1024, ttl=60)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this comment?
return collection | ||
|
||
|
||
@cached(cache=TTLCache(maxsize=1024, ttl=60)) | ||
def get_capabilities(collname): | ||
# @cached(cache=TTLCache(maxsize=1024, ttl=60)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments?
@@ -171,12 +171,12 @@ def get_dimensions(layer, skip_dims=None): | |||
return dims | |||
|
|||
|
|||
@cached(cache=cache) | |||
def get_parameters(collname): | |||
# @cached(cache=cache) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove comments?
Infinite loop does not work properly, and EDR caching is much slower.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Also fix the postgres volume location in the docker compose file.