NorskManager class

The entrypoint for all Norsk Manager applications

Signature:

export declare class NorskManager

Example

const norsk = await NorskManager.connect({ url: "localhost:6790" });

Properties

Property Type Description

version

VersionInfo

Norsk Runtime version information

Methods

Method Modifiers Description

close()

Close down the Norsk connection

completeJob(jobId)

Stops a running job

connect(settings)

static

Connect to the Norsk Manager

createAwsNode(node)

Spawn a new EC2 instance running the worker image, and make it available for picking up jobs

createJob(job)

Create a new job

createOciNode(node)

Spawn a new OCI instance running the worker image, and make it available for picking up jobs

deleteJob(jobId)

Deletes a job

eventStream(settings)

Provides a stream of the activity that is happening on the server-side. Reacting to these events is essential for the creation of client-side management logic.

jobById(id)

Search for jobs by id

jobSearch(settings)

Search for jobs by tag/date/etc. See JobSearchSettings

startJob(jobId, role, nodeId)

Start a job on a node

stopJob(jobId, role, nodeId)

Stop a job running on a node

terminateNode(nodeId)

Forcibly stop a node

updateJob(job)

Update a job