Danny Steffy
03/03/2023, 4:55 PMresult = (
key_to_score(recruiter_teams_to_score)
.map(
lambda key: score_data_set(
data_to_score_for_key(recruiter_in_batch=key), trained_model
)
)
.collect()
)
score_data_set and data_to_score_for_key each collect metadata on their specific steps (processing time and num_rows). I'd like to collect that metadata and average it at the end to display for the graph-backed asset that this ends up beingsandy
03/03/2023, 10:46 PMinstance.all_logs(run_id=context.run_id, of_type=DagsterEventType.STEP_OUTPUT)
would be a good place to start. you can get the metadata off of the output eventsDanny Steffy
03/07/2023, 3:23 PMsandy
03/07/2023, 4:16 PMcontext.step_context.run_id
Danny Steffy
03/07/2023, 5:13 PMsandy
03/07/2023, 5:32 PM