Allow defining post-run hooks on asset jobs
See original GitHub issueWhat’s the use case?
As the define_asset_job()
method doesn’t take a hooks
argument, the only way to execute a post-run hook is by creating a RunStatusSensor
.
In a production environment however, each run will typically be running in its own separated environment/pod/ECS task, effectively meaning the sensor can’t reliably fetch any information from the run that’s saved in the file system of the isolated environment, I’m thinking of e.g. uploading the executed SQL after running a dbt op, but I imagine there’s many more use cases.
Ideas of implementation
No response
Additional information
No response
Message from the maintainers
Impacted by this issue? Give it a 👍! We factor engagement into prioritization.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Chart Hooks - Helm
Helm provides a hook mechanism to allow chart developers to intervene at certain points in a release's life cycle. For example, you can...
Read more >Implementing Oracle HRMS (US) - Oracle Help Center
the flexibility of Oracle HRMS for recording and reporting Job information in your enterprise, the implementation sequence which you follow is: Define Job...
Read more >Appendix A. Configuration Options
This option allows you to define bond devices that aggregate multiple, underlying networking interfaces together. The value of this option is an attribute ......
Read more >US6636242B2 - View configurer in a presentation services patterns ...
Information Services manage electronic data assets and enable applications ... logic that the batch job performs (along with any pre- and post-run logic)....
Read more >Fantasy hockey - The 31 biggest takeaways from the 2020 season
That's when us fantasy folk allow ourselves a sniff of wary optimism. ... A healthy Kuemper is an elite goaltending asset in most...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A workaround for the timebeing could be to use the
runtime_metadata_fn
argument ofload_assets_from_dbt_project
. It lets you return metadata that gets attached to the asset materialization. You could also put code inside of it that writes to S3.Ah, that’s an interesting workaround, definitely fit for my immediate use case.