ExecuteTaskActivity retries forever, so a failing step never parks for an admin
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- go
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Go
- スター
- 6
- フォーク
- 8
- 平均マージ
- 21時間 36分
- マージ済み PR(30日)
- 42
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
OpenNSW/core のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
payment: test fixtures hardcode real gateway names (govpay/lankapay) instead of generic placeholdersオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
nsw-sl cleanup Type/Improvement
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
remote: let the host inject a logger, and log with one consistent policy対応中かも @mushrafmim が 5 日前に担当しました。 オープンType/Improvement
難易度 4/5 3〜5日 初心者へのやさしさ 22/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
agent-research-finding chore
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jordansmall/spindrift#7370 ·
メンテナーはふだん 1 日以内に返信
-
☢️ Bug v3
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
The repo's gates check is clean and runs need no swaps対応中かも @turbot-agent-fleet が今日担当しました。 オープンagent:ready
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
turbot/tailpipe#677 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
needs-kind needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
crossplane-contrib/provider-keycloak#806 ·
メンテナーはふだん 1 日以内に返信