ckan / ckan/ckanext-spatial

Specifying timeout for a CswService

Open
#194 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
XSLT
Stars
136
Forks
207
PR merge metrics
No merged PRs in 30d

Description

`owslib.csw.CatalogueServiceWeb` has a `timeout` parameter. However, `ckanext.spatial.lib.OwsService` only calls `CatalogueServiceWeb` with the `url` parameter; `timeout` is not exposed, as far as I can see.

I'd like to introduce an optional `timeout` parameter to `lib.OwsService` / `lib.CswService`. The default would be 10, `harvesters.CSWHarvester` could change this in `_setup_csw_client()`.

I could submit a PR to do implement this.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with lib.OwsService and lib.CswService, then inspect how harvesters.CSWHarvester calls _setup_csw_client(). Check the OWSLib CatalogueServiceWeb timeout parameter and existing callers. Done means an optional timeout defaults to 10, is passed through to the CSW client, and can be changed by the harvester.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.