[Bug] batch reset on completed workflows sometimes results in terminated workflows
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先使用 Python 工作流和 temporal workflow reset --type FirstWorkflowTask --reason 'testing' --query "WorkflowType STARTS_WITH ''" 命令重现该问题。检查处理已完成工作流时的重置行为,并确认 history resetter 不会让任何工作流处于 terminated 状态。】【。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
When performing a batch reset on completed workflows, sometimes they end up in terminated state.
I have not properly investigated yet, but it felt incorrect. It may not be specific to CLI, but I want to have a ticket open for it.
Minimal Reproduction
Create a workflow with
Python workflow
import asyncio
from datetime import timedelta
from temporalio import activity, workflow
from dan.utils.client import start_workflow
@activity.defn
async def my_activity(name: str) -> str:
return f"Hello, {name}!"
activities = [my_activity]
@workflow.defn
class Workflow:
def __init__(self):
self.received_signal = False
self.received_update = False
@workflow.run
async def run(self) -> str:
await workflow.wait_condition(
lambda: self.received_signal and self.received_update
)
return "workflow-result"
@workflow.signal
def my_signal(self) -> None:
self.received_signal = True
@workflow.update
async def my_update(self) -> None:
await workflow.execute_activity(
my_activity, "update", start_to_close_timeout=timedelta(seconds=10)
)
self.received_update = True
async def main():
wf_handle = await start_workflow(Workflow.run)
print("workflow handle:", wf_handle)
await wf_handle.signal(Workflow.my_signal)
await wf_handle.execute_update(Workflow.my_update)
print("workflow result:", await wf_handle.result())
if __name__ == "__main__":
asyncio.run(main())
Then issue this command (it can be repeated; the number of workflows grows exponentially in doing so)
temporal workflow reset --type FirstWorkflowTask --reason 'testing' --query "WorkflowType STARTS_WITH ''"
Sooner or later, one of the workflows will be in terminated state, with the UI saying terminated by "history resetter".
- 主要语言
- Go
- 星标
- 390
- 派生
- 123
- 平均合并
- 2 天 9 小时
- 30 天内合并 PR
- 13
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
temporalio/cli 的其他 Issue
-
enhancement
难度 1/5 1 小时以内 新手友好度 70/100
temporalio/cli#776 ·
维护者通常 1 天内回复
-
[Feature Request] Option to disable metrics in server start-dev可能已有人在做 @shafiktanbir 于 11 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 67/100
temporalio/cli#1274 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 58/100
temporalio/cli#1249 · 1 条评论 ·
维护者通常 1 天内回复
-
[Feature Request] Decode workflow histories concurrently with remote codec servers可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭enhancement
难度 4/5 3-5 天 新手友好度 65/100
temporalio/cli#1193 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 38/100
temporalio/cli#1178 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
seriousm4x/UpSnap#1786 ·
-
bug feedback ui/ux
难度 2/5 1-3 小时 新手友好度 67/100
peasant-labs/peasant#1307 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
connectrpc/conformance#1211 ·
维护者通常 1 天内回复
-
bug effort:s impact:med raised-by:desk risk:low
难度 2/5 1-3 小时 新手友好度 75/100
medici-finance/assay#8342 · 1 条评论 ·
维护者通常 1 天内回复
-
hardening
难度 2/5 1-3 小时 新手友好度 82/100
inference-sim/inference-sim#2821 ·
维护者通常 1 天内回复