temporalio / temporalio/temporal

Add PARENT_CLOSE_POLICY_DISCONNECTED

Open
#5,725 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Is your feature request related to a problem? Please describe.

It is not possible to start child workflows in a fully disconnected mode which will not report completion/failure to the parent. It causes additional performance overhead as well as UnhandledCommand without any benefit:

Screenshot 2024-04-14 at 10 35 31 AM

Describe the solution you'd like

Add DISCONNECTED to the ParentClosePolicy. When a child is created with this policy, only its start (through ChildWorkflowExecutionStartedEvent) is reported to the parent. The child's completion and failure are not reported. The parent's completion doesn't affect the child as well.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing ParentClosePolicy handling and child workflow lifecycle tests. Use the issue's ChildWorkflowExecutionStartedEvent behavior as the acceptance criteria: a disconnected child reports only its start, is unaffected by parent completion, and does not report completion or failure to the parent.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.