Sanidhya Singh
07/22/2022, 12:35 PMjamie
07/22/2022, 2:46 PMSanidhya Singh
07/22/2022, 3:19 PMjamie
07/22/2022, 4:08 PM@job(
metadata={
"owner": "data team",
"link": MetadataValue.url(url="<https://dagster.io>"),
},
)
def with_metadata():
my_op()
(you can also attach metadata in the to_job
method of a graph)
If we do allow specifying metadata like this on ops the main issue I see with this is that the metadata needs to exist when the op is "defined", so you may need to do something lik e
r_code = parse_r_script()
@op(
metadata={
"r_code": r_code,
},
)
def my_op():
# execution code
again, not sure if the metadata attached to ops gets shown in dagit, i'll confirm that for you