Skip to content

resume_workflow_run

resume_workflow_run(
    name: NameString,
    run_id: IdString,
    node_ids: NodeIdList,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
) -> ResumeWorkflowRunResponse

Restarts selected nodes of a previous partially completed workflow run and resumes the workflow run. The selected nodes and all nodes that are downstream from the selected nodes are run.

Parameters:

  • name (NameString) –

    The name of the workflow to resume.

  • run_id (IdString) –

    The ID of the workflow run to resume.

  • node_ids (NodeIdList) –

    A list of the node IDs for the nodes you want to restart. The nodes that are to be restarted must have a run attempt in the original run.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def resume_workflow_run(
    self,
    name: "capo_glue.types.name_string.NameString",
    run_id: "capo_glue.types.id_string.IdString",
    node_ids: "capo_glue.types.node_id_list.NodeIdList",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
) -> "capo_glue.types.resume_workflow_run_response.ResumeWorkflowRunResponse":
    """<p>Restarts selected nodes of a previous partially completed workflow run and resumes the workflow run. The selected nodes and all nodes that are downstream from the selected nodes are run.</p>

    Args:
        name: <p>The name of the workflow to resume.</p>
        run_id: <p>The ID of the workflow run to resume.</p>
        node_ids: <p>A list of the node IDs for the nodes you want to restart. The nodes that are to be restarted must have a run attempt in the original run.</p>

    Raises:
        capo_glue.errors.concurrent_runs_exceeded_exception.ConcurrentRunsExceededException: <p>Too many jobs are being run concurrently.</p>
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.illegal_workflow_state_exception.IllegalWorkflowStateException: <p>The workflow is in an invalid state to perform a requested operation.</p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.resume_workflow_run_request.ResumeWorkflowRunRequest]",
    ) -> OperationResponse[
        "capo_glue.types.resume_workflow_run_response.ResumeWorkflowRunResponse"
    ]:
        import capo_glue._operations.aws_glue.resume_workflow_run

        output, http_response = (
            capo_glue._operations.aws_glue.resume_workflow_run.resume_workflow_run(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ResumeWorkflowRun")
    )
    input_: capo_glue.types.resume_workflow_run_request.ResumeWorkflowRunRequest = {
        "name": name,
        "run_id": run_id,
        "node_ids": node_ids,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output