Specialization of SlurmConnector that, in addition to supporting ssh/slurm jobs, connects a given singularity container to the HPC environment.

SingularityConnector

Hierarchy (view full)

Constructors

Properties

connectorConfig: hpcConfig

config *

envCmd: string = "#!/bin/bash\n"
hpcName: string
isContainer: boolean = true
is_cvmfs: boolean
jobId: null | string

properties *

maintainer: null | default

parent pointer *

modules: string[] = []
remote_data_folder_path: null | string
remote_executable_folder_path: null | string
remote_result_folder_path: null | string
slurm_id: string
template: string
volumeBinds: Record<string, string> = {}

Methods

  • Parameters

    • path: string

      specified path with filename

    • Optional options: options = {}

      dictionary with string options

    Returns Promise<null | string>

    command execution output

    Async

    creates an empty file at specified path

  • Parameters

    • content: string | Record<string, unknown>

      file content (either string or dictionary)

    • remotePath: string

      specified path with filename

    • options: options = {}

      dictionary with string options (not used)

    • Optional muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<void>

    Async

    creates file with specified content

  • Parameters

    • from: string

      input file string (input folder to download)

    • to: string

      output folder

    • muteEvent: boolean = false

      set to True if you want to mute maintainer emitted Event

    Returns Promise<void>

    Async

    Uncompresses the specified zip file to the Local folder (downloads a folder from the HPC to the local machine)

    Throws

    • Thrown if maintainer emits 'SSH_SCP_DOWNLOAD_ERROR' or if input file not given
  • Parameters

    • commands: string | string[]

      command/commands that need to be executed

    • options: options = {}

      execution options

    • muteEvent: boolean = true

      set to True if you want to mute maintauner emitted Event

    • muteLog: boolean = true

      set to True if you want to mute maintainer emitted Log

    • continueOnError: boolean = false

      set to True if you want the command/commands to continue despite errors

    Returns Promise<out>

    out - maintainer output

    Async

    Executes the command on the maintainer and returns the outpt

  • Executes specified command within specified image

    Parameters

    • image: string

      docker image

    • cmd: string

      command to be executed

    • config: slurm

      slurm configuration

    Returns void

  • Executes specified manifest within image

    Parameters

    Returns Promise<void>

    Throw

    • thrown when container is not supported
  • Parameters

    • Optional path: string
    • Optional options: options = {}

      dictionary with string options

    Returns Promise<null | string>

    returns command execution output

    Async

    Returns all of the files/directories in specified path

  • Parameters

    • path: string

      specified path with filename

    • Optional options: options = {}

      dictionary with string options

    • Optional muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<null | string>

    command execution output

    Async

    creates directory at specified path

  • Creates slurm string with specified configuation. Saves it to this.template.

    Parameters

    • cmd: string

      command that needs to be executed

    • config: slurm

      slurm configuration

    Returns void

  • Parameters

    • Optional path: string
    • Optional options: options = {}

      dictionary with string options

    Returns Promise<null | string>

    returns command execution output

    Async

    Returns the specified path

  • Registers volumeBinds

    Parameters

    • volumeBinds: Record<string, string>

      volumeBinds that need to be registered

    Returns void

  • Parameters

    • path: string

      path to test for

    • Optional options: options

      options for doing an exec

    Returns Promise<boolean>

    true if path exists; false if not

    Async

    Determines whether a passed in (absolute) path exists on the HPC.

  • Parameters

    • path: string

      specified path with filename

    • Optional options: options = {}

      set to True if you want to mute maintauner emitted Event

    • Optional muteEvent: boolean = false

      command execution output

    Returns Promise<null | string>

    Async

    removes the file/folder at specified path

  • Parameters

    • from: string

      input file/directory path

    • to: string

      compress file path with file name

    • Optional options: options = {}

      dictionary with string options

    • Optional muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<null | string>

    command execution output

    Async

    tars the file/directory at specified path

  • Parameters

    • from: string

      input file string

    • to: string

      output folder

    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<void>

    Async

    Transfers a file from the local machine to remote machine

    Throws

    • Thrown if maintainer emits 'SSH_SCP_DOWNLOAD_ERROR'
  • Parameters

    • from: string

      input file/directory path

    • to: string

      compress file path with file name

    • Optional options: options = {}

      dictionary with string options

    • Optional muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<null | string>

    command execution output

    Async

    untars the file/directory at specified path

  • Parameters

    • from: string

      input file/directory path

    • to: string

      compress file path with file name

    • Optional options: options = {}

      dictionary with string options

    • Optional muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<null | string>

    command execution output

    Async

    unzips the file/folder at specified path

  • Parameters

    • from: string

      input file string

    • to: string

      output folder

    • muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event (unused)

    • unzip: boolean = true

      set to True if you want it to unzip and remove on the remote machine; false just uploads

    Returns Promise<void>

    Async

    Uploads a (zipped) folder from the local machine to the target machine. After upload, decompresses the uploaded zip file and then deletes the zip file.

    Throws

    • Thrown if maintainer emits 'SSH_SCP_DOWNLOAD_ERROR'
  • Parameters

    • Optional options: options = {}

      dictionary with string options

    Returns Promise<null | string>

    returns command execution output

    Async

    Returns the username

  • Parameters

    • from: string

      input file/directory path

    • to: string

      compress file path with file name

    • Optional options: options = {}

      dictionary with string options

    • Optional muteEvent: boolean = false

      set to True if you want to mute maintauner emitted Event

    Returns Promise<null | string>

    command execution output

    Async

    zips the file/directory at specified path

Generated using TypeDoc