dhiaayachi / temporal

Temporal service
https://docs.temporal.io
MIT License
0 stars 0 forks source link

why WorkflowTaskScheduled event didn‘t retry #415

Open dhiaayachi opened 2 weeks ago

dhiaayachi commented 2 weeks ago

Expected Behavior

Set the WorkflowTaskTimeout in StartWorkflowOptions with 10second and start this cron workflow in samples-go. And then kill the worker, I expected the WorkflowTaskScheduled event will retry after 10second timeout,but it always hang on WorkflowTaskScheduled event until reached the WorkflowRunTimeout which was set 65second.

here is the workflowOptions

retryPolicy := &temporal.RetryPolicy{
        InitialInterval:    time.Second,
        BackoffCoefficient: 2,
        MaximumInterval:    20 * time.Second,
        MaximumAttempts:    3,
    }

workflowOptions := client.StartWorkflowOptions{
        ID:           workflowID,
        TaskQueue:    "cron",
        CronSchedule: "* * * * *",
        WorkflowIDReusePolicy: 4,
        //WorkflowExecutionTimeout: time.Minute * 2,
        WorkflowRunTimeout: time.Second * 65,
        WorkflowTaskTimeout: time.Second * 10,
        RetryPolicy: retryPolicy,
    }

Actual Behavior

image

Steps to Reproduce the Problem

1. 1. 1.

Specifications