Chris Nogradi
02/02/2022, 7:23 PMowen
02/02/2022, 7:36 PMChris Nogradi
02/02/2022, 7:45 PMowen
02/02/2022, 8:12 PMoutput_context.step_context.instance
. This will give you a Dagster Instance that you can call something like instance.all_logs(context.run_id, of_type=DagsterEventType.HANDLED_OUTPUT)
on to get all of the "handled output" events for the current run. You'd then have to iterate through these to get the correct one for the given step, and then read off metadata from that event (you can add metadata to this event by yielding metadata entries inside the handle_output function: https://docs.dagster.io/concepts/io-management/io-managers#yielding-metadata-from-an-iomanager). Not really a recommended pattern, and you'd need more complicated logic if you wanted to support re-execution on those edges (https://sourcegraph.com/github.com/dagster-io/dagster/-/blob/python_modules/dagster/dagster/core/execution/context/system.py?L475:9), but I figure'd I'd mention itChris Nogradi
02/02/2022, 10:57 PMowen
02/02/2022, 11:07 PMChris Nogradi
02/03/2022, 5:30 PMowen
02/03/2022, 5:37 PMChris Nogradi
02/03/2022, 5:40 PM