release-26.1: jobs: move JobSchedulerEnv helper function
Backport 1/1 commits from #159204 on behalf of @rafiss.
Move this simple function to avoid a dependency cycle in an upcoming commit.
Epic: None Release note: None
Release justification: mechanical refactor to unblock a change targeted for this branch
Thanks for opening a backport.
Before merging, please confirm that the change does not break backwards compatibility and otherwise complies with the backport policy. Include a brief release justification in the PR description explaining why the backport is appropriate. All backports must be reviewed by the TL for the owning area. While the stricter LTS policy does not yet apply, please exercise judgment and consider gating non-critical changes behind a disabled-by-default feature flag when appropriate.
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.