# ask-community

Hebo Yang

07/06/2023, 3:52 PM
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


07/10/2023, 9:32 PM
the env var is probably the best existing way

Hebo Yang

07/11/2023, 6:05 PM
I see. Thanks Alex!