1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00
docs/developers/ocean-cli/downloading-compute-results.md
2023-09-29 10:50:51 +03:00

1.6 KiB

Downloading compute results

To retrieve the compute results, we'll employ two distinct methods. Initially, we'll use the getJobStatus method, where we'll wait for or periodically check the status until it indicates that the job is finished. Subsequently, we'll utilize the method to obtain the actual results.

For the first method, you'll need both the dataset DID and the compute job DID. You can execute the following command:

npm run cli getJobStatus 'DATASET_DID' 'JOB_ID'

This command will enable you to monitor the status of the job and ensure it has completed successfully.

getJobStatus

For the second method, the dataset DID is no longer required. Instead, you'll need to specify the job ID, the index of the result you wish to download from the available results for that job, and the destination folder where you want to save the downloaded content. The corresponding command is as follows:

 npm run cli downloadJobResults 'JOB_ID' 'RESULT_INDEX' 'DESTINATION_FOLDER'
downloadJobResults