Request
Body Params application/json
{
"raw_script": "script.py",
"input_url": "https://raw.githubusercontent.com/backend-developers-ltd/ComputeHorde-examples/master/input_shapes.zip",
"tag": ""
}
Request Code Samples
curl --location --request POST 'http://localhost:3000/api/compute/create-raw-script-job/' \
--header 'X-API-KEY;' \
--header 'Content-Type: application/json' \
--data-raw '{
"raw_script": "script.py",
"input_url": "https://raw.githubusercontent.com/backend-developers-ltd/ComputeHorde-examples/master/input_shapes.zip",
"tag": ""
}'
Responses
application/json {
"uuid": "0159183e-fac7-4511-ba81-789af436bfa3",
"created_at": "2024-06-06T01:42:43.608969Z",
"last_update": "2024-06-06T01:42:43.800722Z",
"status": "Sent",
"docker_image": "",
"raw_script": "script.py",
"args": "",
"env": {},
"use_gpu": false,
"input_url": "https://raw.githubusercontent.com/backend-developers-ltd/ComputeHorde-examples/master/input_shapes.zip",
"output_download_url": "https://d9156a82174bab41b33c38a2cd848d71.eu.r2.cloudflarestorage.com/computehorde-jobs/0159183e-fac7-4511-ba81-789af436bfa3.zip?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ed7e5125ec40b9f365dd8513c9f0a5d9%2F20240606%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20240606T014243Z&X-Amz-Expires=1200&X-Amz-SignedHeaders=host&X-Amz-Signature=f13ae0c3a02f8ce6a511bd05fe57b317b366adc9fb445a301641ac6b27f2398a",
"tag": "",
"stdout": ""
}
Modified at 2024-06-12 14:06:20