https://dagster.io/ logo
#dagster-support
Title
# dagster-support
v

Vlad Efanov

07/03/2022, 8:35 AM
Hello. How can I get tags and run id of current Job from Op?
dagster bot responded by community 1
r

Roei Jacobovich

07/03/2022, 9:35 AM
Hi @Vlad Efanov, when defining an Op, it gets a
context
(type:
OpExecutionContext
) Then:
Copy code
@op
def my_op(context: OpExecutionContext) -> None:
    run_id = context.run_id
    job_tags = context.pipeline_run.tags
v

Vlad Efanov

07/03/2022, 12:05 PM
Thanks. It works
D 1