https://dagster.io/ logo
#announcements
Title
# announcements
p

paul.q

03/09/2021, 4:35 AM
When running a backfill we would potentially like to be able to change some solid behaviour accordingly. I haven't been able to see how we would be able to detect, in a clean way, at runtime that we're running a backfill. I can see that there is dagster_meta data emitted with pipeline and step events that we could potentially use, but it seems a bit private and maybe not to be relied upon in the future. Can anyone advise on the appropriate strategy or some obvious thing I may have missed?
p

prha

03/09/2021, 4:37 AM
Hi Paul… for backfills scheduled through dagit, we usually use tags to identify backfill jobs
And those tags, I believe are available on the context, under
context.pipeline_run.tags
p

paul.q

03/09/2021, 4:38 AM
ahh .. so simple. Thanks!
p

prha

03/09/2021, 4:39 AM
yup! I think the relevant tag key is
dagster/backfill
👍 1
9 Views