AJ Floersch
12/07/2022, 1:27 PMowen
12/07/2022, 4:59 PMExecution time
there is actually a piece of metadata that's attached to the asset materialization event (and parsed directly out of the dbt response in this case). You can add that metadata to your own assets doing something like :
@asset
def foo(context):
start_time = time.time()
# do stuff...
context.add_output_metadata({"Execution time": time.time() - start_time})
return result
We're also looking into surfacing this information automatically (rather than making you manually calculate the execution time)AJ Floersch
12/07/2022, 5:26 PM