Skip to content

Add task abort feature, compensation context and orchestration/compensation failures monitoring#220

Merged
ezodude merged 75 commits intomainfrom
abort-task
Apr 27, 2025
Merged

Add task abort feature, compensation context and orchestration/compensation failures monitoring#220
ezodude merged 75 commits intomainfrom
abort-task

Conversation

@ezodude
Copy link
Copy Markdown
Collaborator

@ezodude ezodude commented Apr 27, 2025

This PR introduces three key improvements:

  1. Task Abort Feature: Allows services to gracefully stop execution with a specific payload rather than raising an error. The abort payload is preserved for compensation handlers.

  2. Enhanced Compensation Context: Compensation handlers now receive context information explaining why compensation was triggered (failure, aborted, etc.), including the orchestration ID, timestamp, and any relevant payload data.

  3. Improved Webhook Monitoring: Added event IDs and detailed payloads to webhooks for better tracking of orchestration completions, failures, and compensation failures. Updated documentation explains how to implement idempotent webhook handling and manage compensation failures.

Documentation updates include:

  • New monitoring-with-webhooks.md guide
  • Updated JS and Python SDK documentation
  • Enhanced compensations.md with context information

Resolves #200

ezodude added 30 commits April 16, 2025 08:46
ezodude added 26 commits April 22, 2025 07:26
… new compensation context for revert handlers.
@ezodude ezodude self-assigned this Apr 27, 2025
@ezodude ezodude merged commit 1405c2f into main Apr 27, 2025
4 checks passed
@ezodude ezodude deleted the abort-task branch April 27, 2025 23:15
@github-actions github-actions bot locked and limited conversation to collaborators Apr 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Developers can abort any task - forcing an execution to complete early

1 participant