Skip to content

stopCompute

Send a stop request for a given compute job hosted by a specific provider.

Usage

import { Nautilus } from '@deltadao/nautilus'
import { Wallet } from 'ethers'
 
const nautilus = await Nautilus.create(new Wallet('0x1234'))
 
await nautilus.stopCompute({ 
    did: 'did:op:1234abcd...', 
    jobId: 'abcd1234', 
    providerUri: 'https://provider.dev.pontus-x.eu'
}) 

Returns

ComputeJob | ComputeJob[]

The compute job object containing information about the job status.

Parameters

config

  • Type: ComputeStopConfig

The configuration object to request the stop of a compute job.

Properties

did
  • Type: string

The decentralized identifier of the input asset of the compute job.

await nautilus.stopCompute({ 
    did: 'did:op:1234abcd...', 
    jobId: 'abcd1234', 
    providerUri: 'https://provider.dev.pontus-x.eu' 
}) 
jobId
  • Type: string

The jobId of the compute job to send a stop request for.

await nautilus.stopCompute({ 
    did: 'did:op:1234abcd...', 
    jobId: 'abcd1234', 
    providerUri: 'https://provider.dev.pontus-x.eu' 
}) 
providerUri
  • Type: string

The uri of the provider that hosts the compute job to be stopped.

await nautilus.stopCompute({ 
    did: 'did:op:1234abcd...', 
    jobId: 'abcd1234', 
    providerUri: 'https://provider.dev.pontus-x.eu'
})