Hello. How can I get tags and run id of current Jo...
# ask-community
v
Hello. How can I get tags and run id of current Job from Op?
dagster bot responded by community 1
r
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
Thanks. It works
D 1