Skip to main content

teraslice-cli / helpers/jobs / default

Class: default

Constructors

new default()

new default(cliConfig): default

Parameters

ParameterType
cliConfigRecord<string, any>

Returns

default

Source

teraslice-cli/src/helpers/jobs.ts:61

Properties

activeStatus

activeStatus: string[]

Source

teraslice-cli/src/helpers/jobs.ts:56


allJobsStopped

allJobsStopped: boolean

Source

teraslice-cli/src/helpers/jobs.ts:55


concurrency

concurrency: number

Source

teraslice-cli/src/helpers/jobs.ts:59


config

config: Record<string, any>

Param

config object

Source

teraslice-cli/src/helpers/jobs.ts:51


jobs

jobs: JobMetadata[]

Source

teraslice-cli/src/helpers/jobs.ts:53


jobsListChecked

jobsListChecked: string[]

Source

teraslice-cli/src/helpers/jobs.ts:57


jobsListInitial

jobsListInitial: string[]

Source

teraslice-cli/src/helpers/jobs.ts:54


teraslice

teraslice: default

Source

teraslice-cli/src/helpers/jobs.ts:52


terminalStatuses

terminalStatuses: AllStatusTypes[]

Source

teraslice-cli/src/helpers/jobs.ts:58

Accessors

list

get list(): JobMetadata[]

Returns

JobMetadata[]

Source

teraslice-cli/src/helpers/jobs.ts:80

Methods

adjustWorkers()

adjustWorkers(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:129


awaitStatus()

awaitStatus(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:201


batchJobsBeforeStart()

batchJobsBeforeStart(): JobMetadata[][]

Returns

JobMetadata[][]

Source

teraslice-cli/src/helpers/jobs.ts:319


checkForErrors()

checkForErrors(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:173


checkStatus()

checkStatus(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:117


delete()

delete(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:499


deleteOne()

deleteOne(job): Promise<void>

Parameters

ParameterType
jobJobMetadata

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:518


export()

export(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:820


exportOne()

exportOne(jobConfig): Promise<void>

Parameters

ParameterType
jobConfigJobConfig

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:834


formatJobConfig()

formatJobConfig(jobConfig): Partial<JobConfig>

Parameters

ParameterType
jobConfigJobConfigFile

Returns

Partial<JobConfig>

Source

teraslice-cli/src/helpers/jobs.ts:730


getClusterControllers()

getClusterControllers(): Promise<ExecutionList>

Returns

Promise<ExecutionList>

Source

teraslice-cli/src/helpers/jobs.ts:722


getJobDiff()

getJobDiff(job): void

Parameters

ParameterType
jobJobMetadata

Returns

void

Source

teraslice-cli/src/helpers/jobs.ts:796


getLocalJSONConfigs()

getLocalJSONConfigs(srcDir, files): Record<string, Partial<JobConfig>>

Parameters

ParameterType
srcDirstring
filesstring[]

Returns

Record<string, Partial<JobConfig>>

Source

teraslice-cli/src/helpers/jobs.ts:745


getStatus()

getStatus(jobApi): Promise<AllStatusTypes>

Parameters

ParameterType
jobApidefault

Returns

Promise<AllStatusTypes>

Source

teraslice-cli/src/helpers/jobs.ts:658


initialize()

initialize(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:113


noJobsWithStatus()

noJobsWithStatus(): void

Returns

void

Source

teraslice-cli/src/helpers/jobs.ts:686


pause()

pause(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:440


pauseOrStopOne()

pauseOrStopOne(job, action): Promise<void>

Parameters

ParameterType
jobJobMetadata
action"stop" | "pause"

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:463


printDiff()

printDiff(diffResult, showUpdateField): void

Parameters

ParameterType
diffResultChange[]
showUpdateFieldboolean

Returns

void

Source

teraslice-cli/src/helpers/jobs.ts:758


recover()

recover(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:151


restart()

restart(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:269


resume()

resume(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:257


run()

run(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:261


save()

save(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:223


start()

start(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:265


startOrResume()

startOrResume(action): Promise<void>

Parameters

ParameterType
action"start" | "resume"

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:274


startOrResumeOne()

startOrResumeOne(job, action): Promise<void>

Parameters

ParameterType
jobJobMetadata
action"start" | "resume"

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:294


statusCheck()

statusCheck(statusList, status): boolean

Parameters

ParameterType
statusListundefined | AllStatusTypes[]
statusAllStatusTypes

Returns

boolean

Source

teraslice-cli/src/helpers/jobs.ts:675


stop()

stop(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:448


submitJobConfig()

submitJobConfig(jobConfig): Promise<undefined | default>

Parameters

ParameterType
jobConfigJobConfigParams

Returns

Promise<undefined | default>

Source

teraslice-cli/src/helpers/jobs.ts:84


verifyK8sImageContinuity()

verifyK8sImageContinuity(cliConfig): Promise<void>

Parameters

ParameterType
cliConfigdefault

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:92


view()

view(): Promise<void>

Returns

Promise<void>

Source

teraslice-cli/src/helpers/jobs.ts:123