Compute Endpoints
All compute endpoints respond with an Array of status objects, each object describing a compute job info.
Each status object will contain:
owner:The owner of this compute job
documentId: String object containing document id (e.g. a DID)
jobId: String object containing workflowId
dateCreated: Unix timestamp of job creation
dateFinished: Unix timestamp when job finished (null if job not finished)
status: Int, see below for list
statusText: String, see below
algorithmLogUrl: URL to get the algo log (for user)
resultsUrls: Array of URLs for algo outputs
resultsDid: If published, the DIDStatus description (statusText): (see Operator-Service for full status list)
1
Warming up
10
Job started
20
Configuring volumes
30
Provisioning success
31
Data provisioning failed
32
Algorithm provisioning failed
40
Running algorith
50
Filtering results
60
Publishing results
70
Job completed
Create or restart compute job
Endpoint: POST /api/services/compute
Start a new job
Parameters
Returns: Array of status objects as described above, in this case the array will have only one object
Example:
Response:
Status and Result
GET /api/services/compute
Get all jobs and corresponding stats
Parameters
Returns
Array of status objects as described above
Example:
Response:
GET /api/services/computeResult
Allows download of asset data file.
Parameters
Returns: Bytes string containing the compute result.
Example:
Response:
Stop
PUT /api/services/compute
Stop a running compute job.
Parameters
Returns
Array of status objects as described above
Example:
Response:
Delete
DELETE /api/services/compute
Delete a compute job and all resources associated with the job. If job is running it will be stopped first.
Parameters
Returns
Array of status objects as described above
Example:
Response:
GET /api/services/computeEnvironments
Allows download of asset data file.
Parameters
Returns: List of compute environments.
Example:
Response:
Last updated
Was this helpful?

