openworkflowdev / openworkflowdev/openworkflow

Support manual retry for failed workflows

Đang mở
#520 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

enhancement
Ngôn ngữ chính
TypeScript
Star
1.3k
Fork
66
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
69

Mô tả

Desired Behavior

It would be great to support manually retrying a failed workflow execution (or a failed workflow step) without restarting the entire workflow from the beginning.

In many real-world workflows, a workflow may contain multiple long-running or expensive steps. If one step fails near the end, the workflow is marked as failed and there is currently no simple way for users to manually retry it.

Ideally, OpenWorkflow could support:

manually retrying a failed workflow execution
resuming from the failed step instead of replaying all previous successful steps
retrying a specific failed step
preserving workflow history and outputs from completed steps

This would be especially useful for:

document processing pipelines
data import/export jobs
ETL workflows
multi-stage asynchronous tasks
workflows involving external APIs
Example Usage
// retry an entire failed workflow
await workflow.retry(workflowId)

// retry from the failed step
await workflow.retry(workflowId, {
fromFailedStep: true,
})

// retry a specific step
await workflow.retryStep(workflowId, "generateReport")

Example scenario:

uploadFile
→ validateFile ✅
→ parseData ✅
→ generateReport ❌
→ sendNotification

Instead of restarting the entire workflow, the user could manually retry only the generateReport step from the UI.

This would improve the user experience for long-running workflows and help avoid unnecessary recomputation and repeated external API calls.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Issue không nêu tên tệp nguồn, kiểm thử hoặc điểm vào nào; trước tiên hãy xác định các điểm vào của việc thực thi workflow và xử lý bước. Để được xem là hoàn thành, cần quyết định thiết kế và triển khai việc thử lại các lần thực thi hoặc bước bị lỗi, đồng thời bảo toàn phần việc đã hoàn thành, lịch sử và đầu ra.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript
Lĩnh vực
backend, distributed-systems
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.