mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
update ServiceComputeOptions
(#1330)
This commit is contained in:
parent
bd32b950a8
commit
f97727dd36
@ -19,47 +19,6 @@ export interface PublisherTrustedAlgorithm {
|
||||
}
|
||||
|
||||
export interface ServiceComputeOptions {
|
||||
/**
|
||||
* Namespaced used for the compute job.
|
||||
* @type {string}
|
||||
*/
|
||||
namespace: string
|
||||
|
||||
/**
|
||||
* Maximum number of CPUs allocated for a job
|
||||
* @type {number}
|
||||
*/
|
||||
cpu?: number
|
||||
|
||||
/**
|
||||
* Maximum number of GPUs allocated for a job
|
||||
* @type {number}
|
||||
*/
|
||||
gpu?: number
|
||||
|
||||
/**
|
||||
* Type of GPU (if any)
|
||||
* @type {string}
|
||||
*/
|
||||
gpuType?: string
|
||||
|
||||
/**
|
||||
* Maximum amount of memory allocated for a job.
|
||||
* You can express memory as a plain integer or as a fixed-point number using one of these suffixes: E, P, T, G, M, k.
|
||||
* You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki.
|
||||
* For example, the following represent roughly the same value: 128974848, 129e6, 129M, 123Mi
|
||||
* @type {string}
|
||||
*/
|
||||
memory?: string
|
||||
|
||||
/**
|
||||
* Amount of disk space allocated.
|
||||
* You can express it as a plain integer or as a fixed-point number using one of these suffixes: E, P, T, G, M, k.
|
||||
* You can also use the power-of-two equivalents: Ei, Pi, Ti, Gi, Mi, Ki.
|
||||
* @type {string}
|
||||
*/
|
||||
volumeSize?: string
|
||||
|
||||
/**
|
||||
* If true, any passed raw text will be allowed to run.
|
||||
* Useful for an algorithm drag & drop use case, but increases risk of data escape through malicious user input.
|
||||
@ -138,7 +97,7 @@ export interface Service {
|
||||
description?: string
|
||||
|
||||
/**
|
||||
* If service is of typecompute, holds information about the compute-related privacy settings & resources.
|
||||
* If service is of type compute, holds information about the compute-related privacy settings & resources.
|
||||
* @type {ServiceComputeOptions}
|
||||
*/
|
||||
compute?: ServiceComputeOptions
|
||||
|
Loading…
x
Reference in New Issue
Block a user