Hi team, I have a question on job run pods that I ...
# ask-community
h
Hi team, I have a question on job run pods that I hope you could help with. We use k8s deployment and run every job in a new pod. I noticed that all job run pods actually invokes the @repository function. I am wondering if there is a way to avoid this please?
For context, we have some functions inside the @repository function to report metrics. Having every job run pod invoking these functions messes up our metrics. Is there a way to differentiate inside the @repository function or CachingRepositoryData that we could tell if this is invoked from the user code server or a job run pod please?
I think maybe I could check the “DAGSTER_RUN_JOB_NAME” env var but wonder if there is a better way
a
the env var is probably the best existing way
h
I see. Thanks Alex!