Skip to content

Fix BED-8746: Add @app.defer decorator to handle generic exception handling#37

Merged
d3vzer0 merged 8 commits into
mainfrom
fix/BED-8746
Jun 24, 2026
Merged

Fix BED-8746: Add @app.defer decorator to handle generic exception handling#37
d3vzer0 merged 8 commits into
mainfrom
fix/BED-8746

Conversation

@d3vzer0

@d3vzer0 d3vzer0 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

The existing DLT resources and transformers are wrapped in a custom safe_resource_wrapper which runs the original function with an additional generic exception handler. However, if the resource and/or transformer use @dlt.defer the generic try/except wont catch the issue. We’ll have to create a similar wrapper for DLT’s @dt.defer to catch defer errors for all collectors, if not done in the collector itself already.

@d3vzer0 d3vzer0 marked this pull request as ready for review June 24, 2026 14:13
Comment thread src/openhound/core/resources.py
@StranDutton StranDutton dismissed their stale review June 24, 2026 16:12

No-op, confirmed behavior is unaffected when returning [] instead of None

@d3vzer0 d3vzer0 merged commit a0a3610 into main Jun 24, 2026
2 checks passed
@d3vzer0 d3vzer0 deleted the fix/BED-8746 branch June 24, 2026 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants