question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow defining post-run hooks on asset jobs

See original GitHub issue

What’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:open
  • Created a year ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sryzacommented, Oct 24, 2022

A workaround for the timebeing could be to use the runtime_metadata_fn argument of load_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.

0reactions
askvinnicommented, Oct 24, 2022

Ah, that’s an interesting workaround, definitely fit for my immediate use case.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found