Skip to content

Add rerun workflow API's#17

Merged
lopezc184 merged 6 commits intomainfrom
feat/rerun_workflow_functionality
Jan 13, 2026
Merged

Add rerun workflow API's#17
lopezc184 merged 6 commits intomainfrom
feat/rerun_workflow_functionality

Conversation

@lopezc184
Copy link
Contributor

@lopezc184 lopezc184 commented Jan 13, 2026

Resolves #303

Added support to the TWS SDK for rerunning workflows. The following functions can be used re-run a workflow:

  • rerun_workflow_with_step_id
  • rerun_workflow_with_step_slug

Implement methods to rerun workflow instances from specific steps
using either slug or ID. This includes validation and error handling
for various scenarios. Also, normalize workflow results for
consistent response formatting.
This commit introduces tests for the rerun workflow
functionality, including success cases and error handling.
It ensures that the rerun process works correctly with
step slugs and IDs, and verifies the expected behavior
when encountering various error scenarios.
Eliminated the `get_workflow_steps` method from both async and sync clients,
along with related test cases, as it is no longer required.
@lopezc184 lopezc184 self-assigned this Jan 13, 2026
@lopezc184 lopezc184 added the enhancement New feature or request label Jan 13, 2026
Enhanced the parameters for fetching workflow instances
to include additional fields such as `id`,
`workflow_definition_id`, `created_at`, `updated_at`,
and `instance_num` for improved data retrieval.
Copy link
Contributor

@sean-schaefer sean-schaefer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me now.

@lopezc184 lopezc184 changed the title Feat/rerun workflow functionality Add rerun workflow API's Jan 13, 2026
@lopezc184 lopezc184 merged commit 3e61bc2 into main Jan 13, 2026
5 checks passed
@lopezc184 lopezc184 deleted the feat/rerun_workflow_functionality branch January 13, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants