curl --request POST \
--url https://api.ionworks.com/jobs/{job_id}/resubmitimport requests
url = "https://api.ionworks.com/jobs/{job_id}/resubmit"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.ionworks.com/jobs/{job_id}/resubmit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ionworks.com/jobs/{job_id}/resubmit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ionworks.com/jobs/{job_id}/resubmit"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ionworks.com/jobs/{job_id}/resubmit")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/jobs/{job_id}/resubmit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"job_id": "<string>",
"job_type": "dummy",
"status": "pending",
"priority": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"organization_id": "<string>",
"is_terminal": true,
"is_failed": true,
"anyscale_url": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"compute_time": 123,
"error": "<string>",
"error_code": "CONFIGURATION_ERROR",
"error_detail": {},
"result": {},
"callback_url": "<string>",
"parent_job_id": "<string>",
"project_id": "<string>",
"access_level": "organization",
"params_path": "<string>",
"metadata_path": "<string>",
"anyscale_job_id": "<string>",
"submission_info": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Resubmit Job
Resubmit a job that failed during submission.
Only jobs with error_code SUBMISSION_FAILED may be resubmitted. Returns 404 if the job is not found, 400 if it cannot be resubmitted.
curl --request POST \
--url https://api.ionworks.com/jobs/{job_id}/resubmitimport requests
url = "https://api.ionworks.com/jobs/{job_id}/resubmit"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.ionworks.com/jobs/{job_id}/resubmit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ionworks.com/jobs/{job_id}/resubmit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ionworks.com/jobs/{job_id}/resubmit"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ionworks.com/jobs/{job_id}/resubmit")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/jobs/{job_id}/resubmit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"job_id": "<string>",
"job_type": "dummy",
"status": "pending",
"priority": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"user_id": "<string>",
"organization_id": "<string>",
"is_terminal": true,
"is_failed": true,
"anyscale_url": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"compute_time": 123,
"error": "<string>",
"error_code": "CONFIGURATION_ERROR",
"error_detail": {},
"result": {},
"callback_url": "<string>",
"parent_job_id": "<string>",
"project_id": "<string>",
"access_level": "organization",
"params_path": "<string>",
"metadata_path": "<string>",
"anyscale_job_id": "<string>",
"submission_info": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
The ID of the job to resubmit
Response
Successful Response
Schema for job information response
Possible types for a job
dummy, datafit, array_datafit, validation, simulate, evaluate_variables, optimize, ecm_fit, simple_pipeline Possible statuses for a job
pending, processing, waiting, completed, failed, canceled Whether the job has reached a terminal state and will not transition further.
Derived from :attr:JobStatus.TERMINAL_STATUSES, so adding a new
terminal status to the enum automatically updates the wire field —
clients that read is_terminal never need to know the status
taxonomy or be re-released when it changes.
Whether the job terminated unsuccessfully (failed or canceled, not completed).
Derived from :attr:is_terminal minus the success case, so any new
non-success terminal status added to :class:JobStatus is
automatically classified as a failure without touching this method.
Deep-link to this job's Anyscale console dashboard, or None.
Built server-side (mirroring the Sentry log_url pattern) from the
captured anyscale_job_id and the environment's console cloud/project
ids. Returns None when the job never ran on Anyscale (local/serve) or
the environment has no console ids configured, so the UI simply omits
the link in those cases.
Machine-readable error codes for jobs.
CONFIGURATION_ERROR, MODEL_ERROR, SOLVER_ERROR, EXECUTION_TIMEOUT, SUBMISSION_FAILED, INTERNAL_ERROR 1 - 2083Possible access levels for a job
project, organization Was this page helpful?