# Parent workflow retries child workflow, but fails after first attempt

**URL:** <https://community.temporal.io/t/parent-workflow-retries-child-workflow-but-fails-after-first-attempt/8428>\
**Category:** Community Support\
**Created:** [June 2, 2023, 7:25am UTC](https://community.temporal.io/t/parent-workflow-retries-child-workflow-but-fails-after-first-attempt/8428 "2023-06-02T07:25:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavel1yakimovich](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/pavel1yakimovich/32/3856_2.png) [@pavel1yakimovich](https://community.temporal.io/u/pavel1yakimovich)\
**Post date:** [June 2, 2023, 7:25am UTC](https://community.temporal.io/t/parent-workflow-retries-child-workflow-but-fails-after-first-attempt/8428/1 "2023-06-02T07:25:15Z")

</div>

Hello,  
I have a parent workflow that starts child workflow with RetryPoliicy.MaximumAttempts = 3  
If the first attempt of child workflow fails, child workflow is retried, but parent is already failed  
How can I not to fail parent workflow, but wait for all three attemps to fail/succeed?

parent wf options:

```auto
client.StartWorkflowOptions{
		ID: workflowID,
		TaskQueue: h.taskQueueName,
		WorkflowExecutionTimeout: 6 * time.Hour,
		WorkflowRunTimeout: 6 * time.Hour,
		WorkflowIDReusePolicy: enumspb.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY,
		WorkflowExecutionErrorWhenAlreadyStarted: true,

```

child wf options:

```auto
childWorkflowOptions := workflow.ChildWorkflowOptions{
		WorkflowID: workflowID,
		WorkflowExecutionTimeout: 6 * time.Hour,
		WorkflowRunTimeout: 5 * time.Hour,
		WorkflowIDReusePolicy: enumspb.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY,
		RetryPolicy: &temporal.RetryPolicy{
			InitialInterval: 10 * time.Second,
			MaximumAttempts: 3,
			NonRetryableErrorTypes: []string{
				(&customerrors.NonRetryableError{}).Error(),
			},
		},
	}
ctx = workflow.WithChildOptions(ctx, childWorkflowOptions)

```

Thanks

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [June 2, 2023, 3:12pm UTC](https://community.temporal.io/t/parent-workflow-retries-child-workflow-but-fails-after-first-attempt/8428/2 "2023-06-02T15:12:18Z")

</div>

What are the events in the parent’s history related to this child?
