utils.rc.wrapper.env

Module Contents

Classes

EnvWrapper

Attributes

logger

utils.rc.wrapper.env.logger
class utils.rc.wrapper.env.EnvWrapper
static createEnv(name: str, description: str, envType: str, cores: int, memInMBs: int, diskInGbs: int, requirements: str, gpus: int, validate_reqs: bool, evergreen: bool, inactivity_in_hours: int)
static updateEnv(envId: str, description: str, envType: str, cores: int, memInMBs: int, diskInGbs: int, requirements: str, gpus: int, evergreen: bool, inactivity_in_hours: int)
static getEnvByName(name: str)
static getEnvById(envId: str)
static deleteEnvById(envId)
static customizeEnv(envId, cores, memInGb)

Customizes the environment configuration for a given environment ID.

Parameters:
  • envId (int) – The ID of the environment to customize.

  • cores (int) – The number of CPU cores to allocate for the environment.

  • memInGb (float) – The amount of memory (in gigabytes) to allocate for the environment.

Returns:

The response JSON containing the customized environment configuration.

Return type:

dict

static getAllEnvs()
static __validate_env(name: str, requirements: str)