-
Can anyone suggest how I can get the config of the job run that generates the asset? For normal sensor, I use context.dagster_run.run_config but that var doesn't exist for asset_sensor |
Beta Was this translation helpful? Give feedback.
Answered by
sryza
Nov 1, 2023
Replies: 1 comment 1 reply
-
Here's an example: @asset_sensor(asset_key=AssetKey("my_table"), job=my_job)
def my_asset_sensor(context: SensorEvaluationContext, asset_event: EventLogEntry):
run_id = asset_event.run_id
run = instance.get_run_by_id(run_id)
run_config = run.run_config Relevant: #14139 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sryza
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's an example:
Relevant: #14139