Skip to content

Support DelayStart option in ChildWorkflowOptions #1297

Open
@skheria

Description

@skheria

Is your feature request related to a problem? Please describe.
I have a use-case where I want my current workflow to trigger another workflow but with a start delay of say 24hours. I wanted to trigger the second workflow as a child-workflow so that we are not losing association between parent-wf & child-wf. This DelayStart option is available in StartWorkflowOptions but its not available in ChildWorkflowOptions.

To solve my problem, in the interim with currently available support, I created an activity to trigger a new workflow (using StartWorkflow function) but this was an overhead as that activity is not adding any value.

Proposed Solution
Give support of DelayStart for ChildWorkflows via ChildWorkflowOptions. I believe since we have ParentClosePolicyAbandon option for ParentClosePolicy, it should be okay to have childWorkflows in-fight (possible when using DelayStart) even after parent workflow has got completed/terminated/cancelled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    customercustomer requestedfeaturenew feature requestup-for-grabsIssues that are good entry points for those new to Cadence that want to contribute

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions