rerun_etl_job_execution

EtlJobsApi.rerun_etl_job_execution(executionid, id, role_id, _request_timeout=None, _request_auth=None, _content_type=None, _headers=None, _host_index=0)

Re-run a root ETL job execution

Starts a new Glue run using the same arguments and capacity as a root execution (no ParentExecutionId). The new run stores ParentExecutionId pointing at that root. Re-runs of re-runs, and currently running executions, are rejected. No request body.

Parameters:
  • executionid (str) – Root execution ID to re-run. Re-run IDs are not accepted. (required)

  • id (str) – UUID of the parent ETL job. (required)

  • role_id (str) – Amorphic role ID sent for authorization. Missing this header returns AUTH-1001. (required)

  • _request_timeout (int, tuple(int, int), optional) – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.

  • _request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.

  • _content_type (str, Optional) – force content-type for the request.

  • _headers (dict, optional) – set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.

  • _host_index (int, optional) – set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.

Return type:

JobExecutionInvokeResponse

Returns:

Returns the result object.

Request and Response Examples

HTTP: POST /jobs/{id}/executions/{executionid}

Success (HTTP 200)

Re-run started. Body includes ExecutionId and Message “Job re-run execution started successfully.”

Request / response example

{
  "ExecutionId": "jr_rerun_7890",
  "Message": "Job re-run execution started successfully."
}

Errors

Documented error codes: GE-1008.

HTTP 400

Read-only caller, missing underlying resource access, running execution, non-root execution, execution/job mismatch, or Glue start failure.

Source execution is still running

{
  "Message": "Rerun is not allowed for running executions. Please re-run the execution after it is stopped."
}

Attempt to re-run a re-run

{
  "Message": "Rerun is not allowed for re-runs. Please re-run the root execution."
}

Read-only caller

{
  "Message": "Read only users for the job cannot perform this action."
}

HTTP 500

Uncaught backend failure. Body is {“Message”: “<CODE> - <text>”}.

Request / response example

{
  "Message": "GE-1008 - Could not complete the request. Please try again."
}