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

JobDB.update() selection by hostname doesn't work on all systems #8

Open
bpuchala opened this issue Jun 16, 2017 · 0 comments
Open

Comments

@bpuchala
Copy link
Contributor

From jobdb.py:

# Parse our hostname so we can only select jobs from THIS host
#   Otherwise, if we're on a multiple-clusters-same-home setup,
#   we may incorrectly update jobs from one cluster onto the other

This is using socket.gethostname() to create a hostname, which then is used in a regex to select which jobs to update. This doesn't work on all systems. Thoughts @tallakahath?

My first thought is to check for a CASM_PBS_JOB_UPDATE environment variable, which if either unset or set to "DEFAULT" (upper or lowercase) will not check for hostname, or if set to "CHECK_HOSTNAME" will select by hostname. I don't plan it now, but we could extend this to enable full customization with something like: "CUSTOM MODULE FUNCTION" in which case the specified module & function would be loaded and used.

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