ResumeWorkflowRunCommand

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.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { GlueClient, ResumeWorkflowRunCommand } from "@aws-sdk/client-glue"; // ES Modules import
// const { GlueClient, ResumeWorkflowRunCommand } = require("@aws-sdk/client-glue"); // CommonJS import
const client = new GlueClient(config);
const input = { // ResumeWorkflowRunRequest
  Name: "STRING_VALUE", // required
  RunId: "STRING_VALUE", // required
  NodeIds: [ // NodeIdList // required
    "STRING_VALUE",
  ],
};
const command = new ResumeWorkflowRunCommand(input);
const response = await client.send(command);
// { // ResumeWorkflowRunResponse
//   RunId: "STRING_VALUE",
//   NodeIds: [ // NodeIdList
//     "STRING_VALUE",
//   ],
// };

ResumeWorkflowRunCommand Input

See ResumeWorkflowRunCommandInput for more details

Parameter
Type
Description
Name
Required
string | undefined

The name of the workflow to resume.

NodeIds
Required
string[] | undefined

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.

RunId
Required
string | undefined

The ID of the workflow run to resume.

ResumeWorkflowRunCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
NodeIds
string[] | undefined

A list of the node IDs for the nodes that were actually restarted.

RunId
string | undefined

The new ID assigned to the resumed workflow run. Each resume of a workflow run will have a new run ID.

Throws

Name
Fault
Details
ConcurrentRunsExceededException
client

Too many jobs are being run concurrently.

EntityNotFoundException
client

A specified entity does not exist

IllegalWorkflowStateException
client

The workflow is in an invalid state to perform a requested operation.

InternalServiceException
server

An internal service error occurred.

InvalidInputException
client

The input provided was not valid.

OperationTimeoutException
client

The operation timed out.

GlueServiceException
Base exception class for all service exceptions from Glue service.