Skip to main content

teraslice-client-js / job / default

Class: default

Extends

Constructors

new default()

new default(config, jobId): default

Parameters

ParameterType
configClientConfig
jobIdstring

Returns

default

Overrides

default.constructor

Source

job.ts:26

Properties

_config

protected readonly _config: ClientConfig

Inherited from

default._config

Source

client.ts:14

Methods

changeWorkers()

changeWorkers(action, workerNum, requestOptions): Promise<string | ChangeWorkerResponse>

Parameters

ParameterType
actionChangeWorkerQueryParams
workerNumnumber
requestOptionsPartial<default>

Returns

Promise<string | ChangeWorkerResponse>

Source

job.ts:205


config()

config(requestOptions): Promise<JobConfig>

Parameters

ParameterType
requestOptionsPartial<default>

Returns

Promise<JobConfig>

Source

job.ts:189


controller()

controller(requestOptions): Promise<ExecutionList>

Parameters

ParameterType
requestOptionsPartial<default>

Returns

Promise<ExecutionList>

Source

job.ts:46


delete()

delete<T>(endpoint, options?): Promise<T>

Type parameters

Type parameterValue
Tany

Parameters

ParameterType
endpointstring
options?Partial<default>

Returns

Promise<T>

Inherited from

default.delete

Source

client.ts:54


deleteJob()

deleteJob(): Promise<JobConfig>

Returns

Promise<JobConfig>

Source

job.ts:102


errors()

errors(query, searchOptions): Promise<ErrorRecord[]>

Parameters

ParameterType
querySearchQuery
searchOptionsPartial<default>

Returns

Promise<ErrorRecord[]>

Source

job.ts:193


exId()

exId(requestOptions): Promise<ExecutionIDResponse>

Parameters

ParameterType
requestOptionsPartial<default>

Returns

Promise<ExecutionIDResponse>

Source

job.ts:110


execution()

execution(requestOptions): Promise<ExecutionConfig>

Parameters

ParameterType
requestOptionsPartial<default>

Returns

Promise<ExecutionConfig>

Source

job.ts:106


get()

get<T>(endpoint, options?): Promise<T>

Type parameters

Type parameterValue
Tany

Parameters

ParameterType
endpointstring
options?Partial<default>

Returns

Promise<T>

Inherited from

default.get

Source

client.ts:42


id()

id(): string

Returns

string

Source

job.ts:38


makeOptions()

protected makeOptions(searchParams, options): Partial<default>

Parameters

ParameterType
searchParamsundefined | Record<string, any>
optionsPartial<default>

Returns

Partial<default>

Inherited from

default.makeOptions

Source

client.ts:110


parse()

protected parse(results): any

Parameters

ParameterType
resultsunknown

Returns

any

Inherited from

default.parse

Source

client.ts:106


pause()

pause(query?, searchOptions?): Promise<ApiPausedResponse>

Parameters

ParameterType
query?SearchQuery
searchOptions?Partial<default>

Returns

Promise<ApiPausedResponse>

Source

job.ts:66


post()

post<T>(endpoint, data?, options?): Promise<T>

Type parameters

Type parameterValue
Tany

Parameters

ParameterType
endpointstring
data?unknown
options?Partial<default>

Returns

Promise<T>

Inherited from

default.post

Source

client.ts:46


put()

put<T>(endpoint, data, options?): Promise<T>

Type parameters

Type parameterValue
Tany

Parameters

ParameterType
endpointstring
dataunknown
options?Partial<default>

Returns

Promise<T>

Inherited from

default.put

Source

client.ts:50


recover()

recover(query, searchOptions): Promise<ApiJobCreateResponse>

Parameters

ParameterType
queryRecoverQuery
searchOptionsPartial<default>

Returns

Promise<ApiJobCreateResponse>

Source

job.ts:82


resume()

resume(query?, searchOptions?): Promise<ApiResumeResponse>

Parameters

ParameterType
query?SearchQuery
searchOptions?Partial<default>

Returns

Promise<ApiResumeResponse>

Source

job.ts:74


slicer()

slicer(requestOptions): Promise<ExecutionList>

Parameters

ParameterType
requestOptionsPartial<default>

Returns

Promise<ExecutionList>

Source

job.ts:42


start()

start(query?, searchOptions?): Promise<ApiJobCreateResponse>

Parameters

ParameterType
query?SearchQuery
searchOptions?Partial<default>

Returns

Promise<ApiJobCreateResponse>

Source

job.ts:50


status()

status(requestOptions): Promise<"pending" | "scheduling" | "initializing" | "running" | "recovering" | "failing" | "paused" | "stopping" | "completed" | "stopped" | "rejected" | "failed" | "terminated">

Parameters

ParameterType
requestOptionsPartial<default>

Returns

Promise<"pending" | "scheduling" | "initializing" | "running" | "recovering" | "failing" | "paused" | "stopping" | "completed" | "stopped" | "rejected" | "failed" | "terminated">

Source

job.ts:115


stop()

stop(query?, searchOptions?): Promise<ApiStoppedResponse>

Parameters

ParameterType
query?StopQuery
searchOptions?Partial<default>

Returns

Promise<ApiStoppedResponse>

Source

job.ts:58


update()

update(jobSpec): Promise<JobConfig>

Parameters

ParameterType
jobSpecJobConfig

Returns

Promise<JobConfig>

Source

job.ts:90


updatePartial()

updatePartial(jobSpec): Promise<JobConfig>

Parameters

ParameterType
jobSpecPartial<JobConfig>

Returns

Promise<JobConfig>

Source

job.ts:94


waitForStatus()

waitForStatus(target, intervalMs, timeoutMs, requestOptions): Promise<"pending" | "scheduling" | "initializing" | "running" | "recovering" | "failing" | "paused" | "stopping" | "completed" | "stopped" | "rejected" | "failed" | "terminated">

Parameters

ParameterTypeDefault value
target"pending" | "scheduling" | "initializing" | "running" | "recovering" | "failing" | "paused" | "stopping" | "completed" | "stopped" | "rejected" | "failed" | "terminated" | ("pending" | "scheduling" | "initializing" | "running" | "recovering" | "failing" | "paused" | "stopping" | "completed" | "stopped" | "rejected" | "failed" | "terminated")[]undefined
intervalMsnumber1000
timeoutMsnumber0
requestOptionsPartial<default>{}

Returns

Promise<"pending" | "scheduling" | "initializing" | "running" | "recovering" | "failing" | "paused" | "stopping" | "completed" | "stopped" | "rejected" | "failed" | "terminated">

Source

job.ts:120


workers()

workers(requestOptions): Promise<WorkerNode[]>

Parameters

ParameterType
requestOptionsPartial<default>

Returns

Promise<WorkerNode[]>

Source

job.ts:200