Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job startup find-ifdh code should have a fallback from "current"... #577

Open
marcmengel opened this issue Oct 1, 2024 · 0 comments
Open

Comments

@marcmengel
Copy link
Contributor

We should probably have the code in the simple.sh template in setup_ifdh_env() that looks like:

    . /cvmfs/fermilab.opensciencegrid.org/packages/common/setup-env.sh
    sos=$(spack arch --operating-system)
    spack env activate ifdh_env_${sos}_${IFDH_VERSION:-current} ||
      echo Falling back to current ifdhc for this operation >&2 &&
      spack env activate ifdh_env_${sos}_current

have a second fall-back to ifdh_env_${sos}_prev (i.e. the previous known working version), in case rolling out
the new ifdh version goes wonky (as it did yesterday) Then we would get a notice that the new environment is
borked, but peoples jobs would hopefully still run and copy back output with the previous version. We will of course
have to have those _prev environment symlinks defined for this to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant