ExecuteTaskActivity retries forever, so a failing step never parks for an admin
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- backend, distributed-systems
Hướng nghiên cứu
Start in workflow/workflow.go at handleTaskNode and trace the ExecuteTaskActivity options and the error path that parks a node for an admin. Then inspect dynamic_split.go and other engine activities for the same retry behavior. Done means repeated retryable task start failures eventually surface as an error and park the node, while steps waiting for asynchronous completion are not cut off by a total time limit.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the Bug
ExecuteTaskActivity runs with no retry policy, so a step whose start keeps failing is retried forever and never reaches the admin park.
handleTaskNode (workflow/workflow.go) sets only ActivityID and a one-year StartToCloseTimeout. With no RetryPolicy, Temporal's default applies: unlimited attempts, with the delay between them growing to 100s. A retryable error from the activity, such as a plugin failing in StartTaskStep, is retried indefinitely. The engine parks a node for an admin only when ExecuteActivity(...).Get returns an error (withCategory(ParkCategoryTaskFailure, err)), and that never happens.
This affects both levels: the task's own workflow (task-wf-…, MICRO_WORKFLOW_QUEUE), where the failing step runs, and the parent workflow's TASK node waiting on it.
To Reproduce
- Run a flow with a PAYMENT step while the host's refid config has no issuer for the payment reference format (e.g.
refid.issuers: []). - Reach the payment step.
- The worker logs
Activity error ... Attempt=Nwithrefid: unknown issuerforever. The node stays RUNNING with no last error, the trader sees "Starting Step", and the admin debugger shows nothing to resolve.
Expected Behavior
After a bounded number of attempts the activity fails, the engine parks the node (AWAITING_ADMIN) with the error, and an admin can see it and retry, complete or abort it.
Suggested shape:
- Set a
RetryPolicyon the task activity with aMaximumAttemptscap (a handful), keeping the backoff. - Cap attempts, not total time. The same activity also waits for asynchronous completion (a user submitting a form, an agency responding), which can legitimately take days, so a
ScheduleToCloseTimeoutwould cut off steps that are only waiting. - Check the other activities the engine runs (e.g.
dynamic_split.go) for the same unbounded default.
Additional Context
- Without a cap, a misconfiguration is only visible in the worker logs.
- Related: errors that can never succeed should not be retried at all: #303.
- Seen in nsw-srilanka local testing, 2026-10-12.
- Ngôn ngữ chính
- Go
- Star
- 6
- Fork
- 8
- Merge trung bình
- 21 giờ 36 phút
- Pull request đã merge (30 ngày)
- 42
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenNSW/core
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
payment: test fixtures hardcode real gateway names (govpay/lankapay) instead of generic placeholdersĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
nsw-sl cleanup Type/Improvement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
remote: let the host inject a logger, and log with one consistent policyCó thể đã có người làm @mushrafmim đã nhận 5 ngày trước. Đang mởType/Improvement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
agent-research-finding chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jordansmall/spindrift#7370 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
☢️ Bug v3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
The repo's gates check is clean and runs need no swapsCó thể đã có người làm @turbot-agent-fleet đã nhận hôm nay. Đang mởagent:ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
turbot/tailpipe#677 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-kind needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
crossplane-contrib/provider-keycloak#806 ·
Maintainer thường phản hồi trong vòng 1 ngày