-
Is it possible to get the code location of a given asset? or the "current" one or something? 😄 The question was originally asked in Dagster Slack. |
Beta Was this translation helpful? Give feedback.
Answered by
benpankow
Nov 21, 2023
Replies: 1 comment 2 replies
-
Yes, it's possible to extract from the asset context: @asset
def my_asset(context: AssetExecutionContext):
location_name = (context.get_step_execution_context()
.dagster_run.remote_job_origin.external_repository_origin
.code_location_origin.location_name) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
benpankow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, it's possible to extract from the asset context: