Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

feat: Better logging and exception handling in populate catalog #2084

Merged

Conversation

Jimlinz
Copy link
Contributor

@Jimlinz Jimlinz commented Sep 29, 2022

When populate_catalog lambda fails, messages get stuck in SQS. This prevents subsequent datasets from being added to geostore (in completion). Without alerting in place, the problem persists until someone notices it.

This PR implements better logging and exception handling in populate_catalog. The logs should capture when an exception is thrown. Elasticsearch should monitor for such problem and alert the geostore team accordingly.

Reference

Code review checklist

@Jimlinz Jimlinz requested review from l0b0 and AmrouEmad September 30, 2022 00:16
tests/test_populate_catalog.py Outdated Show resolved Hide resolved
tests/test_populate_catalog.py Outdated Show resolved Hide resolved
tests/test_populate_catalog.py Outdated Show resolved Hide resolved
@Jimlinz Jimlinz force-pushed the feat/better-logging-exception-handling-populate-catalog branch from b1d6a85 to 8e8e66a Compare October 4, 2022 22:53
@Jimlinz Jimlinz requested a review from l0b0 October 4, 2022 23:29
tests/test_populate_catalog.py Outdated Show resolved Hide resolved
@Jimlinz Jimlinz force-pushed the feat/better-logging-exception-handling-populate-catalog branch from 8e8e66a to eab5a16 Compare October 4, 2022 23:51
@Jimlinz Jimlinz requested a review from l0b0 October 5, 2022 00:37
@kodiakhq kodiakhq bot merged commit 585eb03 into master Oct 5, 2022
@kodiakhq kodiakhq bot deleted the feat/better-logging-exception-handling-populate-catalog branch October 5, 2022 01:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

2 participants