1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

set ComputeOutput

This commit is contained in:
Matthias Kretschmann 2021-04-28 17:07:14 +02:00
parent 015b212eda
commit 2587c4d4b9
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -26,7 +26,10 @@ import {
getInitialValues, getInitialValues,
validationSchema validationSchema
} from '../../../../models/FormStartComputeDataset' } from '../../../../models/FormStartComputeDataset'
import { ComputeAlgorithm } from '@oceanprotocol/lib/dist/node/ocean/interfaces/Compute' import {
ComputeAlgorithm,
ComputeOutput
} from '@oceanprotocol/lib/dist/node/ocean/interfaces/Compute'
import { AssetSelectionAsset } from '../../../molecules/FormFields/AssetSelection' import { AssetSelectionAsset } from '../../../molecules/FormFields/AssetSelection'
import { SearchQuery } from '@oceanprotocol/lib/dist/node/metadatacache/MetadataCache' import { SearchQuery } from '@oceanprotocol/lib/dist/node/metadatacache/MetadataCache'
import axios from 'axios' import axios from 'axios'
@ -405,7 +408,10 @@ export default function Compute({
computeAlgorithm.transferTxId = algorithmAssetOrderId computeAlgorithm.transferTxId = algorithmAssetOrderId
Logger.log('[compute] Starting compute job.') Logger.log('[compute] Starting compute job.')
const output = {} const output: ComputeOutput = {
publishAlgorithmLog: true,
publishOutput: true
}
const response = await ocean.compute.start( const response = await ocean.compute.start(
ddo.id, ddo.id,
assetOrderId, assetOrderId,