Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

More stable/faster environment checking #741

@b-butler

Description

@b-butler

Feature description

Modifying the environment detection to rely less heavily on the hostname would be helpful for when clusters change hostnames which has happened twice on Delta. @joaander proposed using environmental variables that are set on clusters to indicate identity such as SLURM_CLUSTER_NAME and CLUSTER_NAME.

Proposed solution

Just add an environment variable option to environment detection os.getenv was roughly 3 orders of magnitude faster than socket.getfqdn.
To do this ComputeEnvironment.ispresent can look up an environment variable if given and check for its presence and value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cluster submissionEnhancements to the submission process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions