1. Tasks
  2. Rerun Action

Tasks

Rerun Action

The Rerun Action task allows you to re-execute a previously completed action by referencing its stubpost. This task is useful for retrying failed operations, repeating successful workflows, or testing action configurations.

Basic usage

Rerun a previously executed action by referencing its stubpost UUID.

loading...

Parameters

stubpostuuid
required
string

The UUID of the stubpost that was created when the original action was executed. This identifies the specific action record that will be used to rerun the action with the same parameters, data, and message.

Result

loading...

Properties

sendActionsList

An array containing two actions that will be executed:

  1. New Action Request: Reruns the original action with a new stubpost UUID, preserving all original parameters, data, attachments, and message
  2. Comment Action: Adds a comment to the original action's stubpost with a link to the newly executed action

Safety Features

The task includes several built-in safety mechanisms to prevent infinite loops:

  • Same Action Prevention: Cannot rerun the currently executing action
  • Loop Detection: Prevents rerunning an action that has the same name as the current action
  • UUID Validation: Ensures the target stubpost exists before attempting to rerun

Use Cases

Retry Failed Operations

When an action fails due to temporary issues (network problems, external service unavailability), you can rerun it by referencing the stubpost that was created when the action originally ran.

Repeat Successful Workflows

Rerun previously executed actions to repeat workflows with the same parameters and data by referencing their stubpost records.

Testing and Development

Test action configurations by rerunning previously executed actions with identical conditions to verify consistency.

Manual Intervention Recovery

After resolving issues that caused an action to fail, rerun the action by referencing its stubpost to continue the workflow.

Error Handling

The task will return errors in the following situations:

  • Missing stubpostuuid: When no stubpost UUID is provided
  • Stubpost not found: When the specified stubpost UUID doesn't exist in the system
  • Loop prevention: When attempting to rerun the same action that's currently executing
  • Same action prevention: When the original action recorded in the stubpost has the same name as the current action. This is also to prevent infinite loops.

These safety checks ensure system stability and prevent infinite execution loops.

Examples

Rerun an action

loading...

This will rerun the original action with all its original parameters, add a comment to the original stubpost linking to the new execution, and when the action completes, create a new stubpost with the results.