We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 741d45c commit 3b3cd14Copy full SHA for 3b3cd14
app.py
@@ -108,7 +108,10 @@ def main():
108
109
except Exception as e:
110
_METRIC_PG_DUMP_STATUS.labels(THOTH_DEPLOYMENT_NAME, __component_version__).set(1)
111
- _LOGGER.exception(f"An error occurred while saving pg dump: {str(e)}")
+ else:
112
+ METRIC_PG_DUMP_STATUS.labels(THOTH_DEPLOYMENT_NAME, __component_version__).set(1)
113
+ finally:
114
+ _send_metrics()
115
116
_send_metrics()
117
0 commit comments