temporal icon indicating copy to clipboard operation
temporal copied to clipboard

Reset workflow immediately times out if ExecutionTimeout has expired

Open mfateev opened this issue 4 years ago • 5 comments

Expected Behavior

The execution timeout is calculated from the time the workflow is reset.

Actual Behavior

The new run of the workflow created by reset is immediately timed out.

Steps to Reproduce the Problem

  1. Start a workflow specifying only the execution timeout.
  2. Let workflow timeout
  3. Reset workflow to the FirstWorkflowTask
  4. Witness workflow the new run immediately timeout.

Note that if WorkflowRunTimeout is specified and execution timeout is not (which defaults it to infinity) then the new run executes without any problem.

mfateev avatar Sep 12 '21 23:09 mfateev

@mfateev what does execution timeout means? timeout across all runs? starting from?

wxing1292 avatar Sep 13 '21 01:09 wxing1292

We recommend not setting workflow execution timeout for almost all cases. For this issue, trying to reset a completed execution that had workflow execution timeout set would trigger this timeout to be fired in the new execution on reset point as the copied events before the reset point have original exec time stamps

tsurdilo avatar Oct 17 '23 22:10 tsurdilo

if timeout is not set , under few conditions the workflow may run endless and affect the system at scale

sameemcodes avatar Dec 18 '23 13:12 sameemcodes

i think ideallly reset should restart the timedout workflow from the execution point

sameemcodes avatar Dec 18 '23 13:12 sameemcodes

this also applies to resetting executions that timed out on workflow run timeout

tsurdilo avatar Apr 25 '24 15:04 tsurdilo