# \#timeout

**URL:** https://community.temporal.io/tag/timeout/79.md

[Latest](https://community.temporal.io/latest.md) · [Categories](https://community.temporal.io/categories.md) · [Tags](https://community.temporal.io/tags.md)

---

## [Workflow Task Heartbeating behavior with multiple sequential Local Activities](https://community.temporal.io/t/workflow-task-heartbeating-behavior-with-multiple-sequential-local-activities/19433)

<div class="topic-metadata">

**Author:** [@maximus3](https://community.temporal.io/u/maximus3)\
**Replies:** 1\
**Last updated:** [April 9, 2026, 2:56pm UTC](https://community.temporal.io/t/workflow-task-heartbeating-behavior-with-multiple-sequential-local-activities/19433 "2026-04-09T14:56:29Z")

</div>

Hey everyone :waving\_hand: I have a workflow that runs multiple sequential Local Activities, each taking ~2 seconds. I understand that Workflow Task Heartbeating kicks in automatically when a Local Activity takes longer…

---

## [Activity stuck and not processing until start-to-close timeout is hit](https://community.temporal.io/t/activity-stuck-and-not-processing-until-start-to-close-timeout-is-hit/12340)

<div class="topic-metadata">

**Author:** [@dnnsthnnr](https://community.temporal.io/u/dnnsthnnr)\
**Replies:** 6\
**Last updated:** [December 9, 2025, 5:49pm UTC](https://community.temporal.io/t/activity-stuck-and-not-processing-until-start-to-close-timeout-is-hit/12340 "2025-12-09T17:49:10Z")

</div>

Hi there, when starting a bunch of workflows in a short timeframe we notice that some activities (at random different activities) are stuck and not processing anything until they are running into their start-to-close ti…

---

## [TestWorkflowEnvironment doesn't respect activity ScheduleToCloseTimeout](https://community.temporal.io/t/testworkflowenvironment-doesnt-respect-activity-scheduletoclosetimeout/17289)

<div class="topic-metadata">

**Author:** [@Andrew1](https://community.temporal.io/u/Andrew1)\
**Replies:** 2\
**Last updated:** [July 27, 2025, 11:58am UTC](https://community.temporal.io/t/testworkflowenvironment-doesnt-respect-activity-scheduletoclosetimeout/17289 "2025-07-27T11:58:11Z")

</div>

In about 0,1% cases TestWorkflowEnvironment doesn’t respect activity ScheduleToCloseTimeout and retries it infinitely, which leads to test’s failures. Activity stub has settings: ScheduleToCloseTimeout = 30 seconds Ma…

---

## [How to model a business timeout to execute business logic if workflow does not complete in time?](https://community.temporal.io/t/how-to-model-a-business-timeout-to-execute-business-logic-if-workflow-does-not-complete-in-time/16043)

<div class="topic-metadata">

**Author:** [@cec](https://community.temporal.io/u/cec)\
**Replies:** 2\
**Last updated:** [January 30, 2025, 3:47pm UTC](https://community.temporal.io/t/how-to-model-a-business-timeout-to-execute-business-logic-if-workflow-does-not-complete-in-time/16043 "2025-01-30T15:47:32Z")

</div>

Hi, I built a workflow consisting of 10 activities called sequentially synchronously as activities downstream take as input the output of upstream activities. This workflow runs daily and has to complete before 9AM. I…

---

## [Temporal UI JWT token Session timeout](https://community.temporal.io/t/temporal-ui-jwt-token-session-timeout/3787)

<div class="topic-metadata">

**Author:** [@jaffarsadik](https://community.temporal.io/u/jaffarsadik)\
**Replies:** 5\
**Last updated:** [November 28, 2024, 8:13am UTC](https://community.temporal.io/t/temporal-ui-jwt-token-session-timeout/3787 "2024-11-28T08:13:53Z")

</div>

Hi, Currently I am using Temporal-UI version 1.11.0. I am using the authentication & authorization (claim mapper). Do we have session timeout configuration after the user logged-in and Idle for quite long time on browse…

---

## [Workflow execution timeout vs run timeout](https://community.temporal.io/t/workflow-execution-timeout-vs-run-timeout/13713)

<div class="topic-metadata">

**Author:** [@bcabrera](https://community.temporal.io/u/bcabrera)\
**Replies:** 5\
**Last updated:** [September 30, 2024, 7:23pm UTC](https://community.temporal.io/t/workflow-execution-timeout-vs-run-timeout/13713 "2024-09-30T19:23:59Z")

</div>

Reading through the docs, its still not clear to me which I should use given my use case: I have workflows that are executed/scheduled to be run at a future date via a StartDelay. Lets say I call ExecuteWorkflow and expe…

---

## [WorkflowTaskTimedOut when testing performance](https://community.temporal.io/t/workflowtasktimedout-when-testing-performance/2542)

<div class="topic-metadata">

**Author:** [@Ramprasad\_Indarapu](https://community.temporal.io/u/Ramprasad_Indarapu)\
**Replies:** 6\
**Last updated:** [September 8, 2024, 10:22am UTC](https://community.temporal.io/t/workflowtasktimedout-when-testing-performance/2542 "2024-09-08T10:22:08Z")

</div>

HI I am getting WorkflowTaskTimedOut, when running a large number of flows. Any inputs please! attaching the screenshot

---

## [Handling activity schedule-to-close timeouts](https://community.temporal.io/t/handling-activity-schedule-to-close-timeouts/11217)

<div class="topic-metadata">

**Author:** [@Axel\_Seow](https://community.temporal.io/u/Axel_Seow)\
**Replies:** 4\
**Last updated:** [July 23, 2024, 3:07pm UTC](https://community.temporal.io/t/handling-activity-schedule-to-close-timeouts/11217 "2024-07-23T15:07:54Z")

</div>

Hello, I have a use case for catching schedule-to-close timeouts and noticed some peculiar behaviour on the errors being returned. Say for example the schedule-to-close timeout is set to 10s. If the activity exceeds 10…

---

## [Activity doesn't detect own timeout](https://community.temporal.io/t/activity-doesnt-detect-own-timeout/12254)

<div class="topic-metadata">

**Author:** [@nikon](https://community.temporal.io/u/nikon)\
**Replies:** 3\
**Last updated:** [May 28, 2024, 4:38pm UTC](https://community.temporal.io/t/activity-doesnt-detect-own-timeout/12254 "2024-05-28T16:38:29Z")

</div>

Hi. One of the Temporal use-cases for me is task execution. It’s when you have a one-liner workflow which synchroniously calls activity with some business logic inside. I understand that it’s not a primary use-case, but…

---

## [WorkflowTaskTimedOut while running large number of activities](https://community.temporal.io/t/workflowtasktimedout-while-running-large-number-of-activities/10983)

<div class="topic-metadata">

**Author:** [@mahima](https://community.temporal.io/u/mahima)\
**Replies:** 3\
**Last updated:** [February 13, 2024, 1:34am UTC](https://community.temporal.io/t/workflowtasktimedout-while-running-large-number-of-activities/10983 "2024-02-13T01:34:35Z")

</div>

Hello, We are seeing the following error when I run workflows with large number of activities We are running the activities using iterator pattern in batches. One run of the workflow will work on 1000 activities and…

---

## [How to best handle mysterious context deadline exceeded/502 errors](https://community.temporal.io/t/how-to-best-handle-mysterious-context-deadline-exceeded-502-errors/2689)

<div class="topic-metadata">

**Author:** [@Tristan\_Fletcher](https://community.temporal.io/u/Tristan_Fletcher)\
**Replies:** 7\
**Last updated:** [September 30, 2023, 8:46pm UTC](https://community.temporal.io/t/how-to-best-handle-mysterious-context-deadline-exceeded-502-errors/2689 "2023-09-30T20:46:00Z")

</div>

For background, we are running a temporal cluster on AWS, with all temporal services as ECS tasks and the frontend service behind an ALB. We support a number of different teams and use cases across Golang, Ruby, and Pyth…

---

## [Will setting StartToClose lead to non-determinism in Python?](https://community.temporal.io/t/will-setting-starttoclose-lead-to-non-determinism-in-python/9536)

<div class="topic-metadata">

**Author:** [@wahib](https://community.temporal.io/u/wahib)\
**Replies:** 1\
**Last updated:** [September 19, 2023, 1:31pm UTC](https://community.temporal.io/t/will-setting-starttoclose-lead-to-non-determinism-in-python/9536 "2023-09-19T13:31:06Z")

</div>

Hi, we forgot to set the StartToClose timeout for our activities (the ScheduleToClose timeout was set though) and now we have a bunch of running workflows. If we were to add the StartToClose timeout in our logic now, wil…

---

## [Timer is showing 10year 12 hour, instead of 10years](https://community.temporal.io/t/timer-is-showing-10year-12-hour-instead-of-10years/9471)

<div class="topic-metadata">

**Author:** [@kishore\_kumar](https://community.temporal.io/u/kishore_kumar)\
**Replies:** 1\
**Last updated:** [September 14, 2023, 7:05am UTC](https://community.temporal.io/t/timer-is-showing-10year-12-hour-instead-of-10years/9471 "2023-09-14T07:05:01Z")

</div>

In the code i have set the timer as just 10 years, But in the UI it is comming as 10 years & 12 hours…, any specific reason for this?

---

## [Handle Activity Schedule-To-Close Timeout in Workflow](https://community.temporal.io/t/handle-activity-schedule-to-close-timeout-in-workflow/9172)

<div class="topic-metadata">

**Author:** [@John\_Bonda](https://community.temporal.io/u/John_Bonda)\
**Replies:** 2\
**Last updated:** [August 15, 2023, 4:48pm UTC](https://community.temporal.io/t/handle-activity-schedule-to-close-timeout-in-workflow/9172 "2023-08-15T16:48:19Z")

</div>

Currently the workflow fails when the Schedule-To-Close timeout is triggered for an Activity. Is it possible to catch Schedule-To-Close timeout and handle it (signal another workflow/trigger a different activity to notif…

---

## [Workflow using continueAsNew getting timedout](https://community.temporal.io/t/workflow-using-continueasnew-getting-timedout/8980)

<div class="topic-metadata">

**Author:** [@Aadeesh\_Jain](https://community.temporal.io/u/Aadeesh_Jain)\
**Replies:** 6\
**Last updated:** [July 31, 2023, 3:06pm UTC](https://community.temporal.io/t/workflow-using-continueasnew-getting-timedout/8980 "2023-07-31T15:06:29Z")

</div>

My workflow logic using java-sdk is something like : void init(xyz) { . . . Workflow.await(Duration.ofMinutes(15), () → exitRequested); AbcWf continueAsNew = Workflow.newContinueAsNewStub(AbcWf.class); continueAs…

---

## [Is there a possibility of data loss when heart beating?](https://community.temporal.io/t/is-there-a-possibility-of-data-loss-when-heart-beating/8203)

<div class="topic-metadata">

**Author:** [@nitesh237](https://community.temporal.io/u/nitesh237)\
**Replies:** 2\
**Last updated:** [May 17, 2023, 11:34am UTC](https://community.temporal.io/t/is-there-a-possibility-of-data-loss-when-heart-beating/8203 "2023-05-17T11:34:54Z")

</div>

Hi Team, We have a few use-cases of long running activity. We wanted to make activity resumable in case of worker pods re-deployments. You can freely record Heartbeats as often as you want (e.g. once a minute, or eve…

---

## [Workflow timeout detection](https://community.temporal.io/t/workflow-timeout-detection/7884)

<div class="topic-metadata">

**Author:** [@Sudhanva\_Patil](https://community.temporal.io/u/Sudhanva_Patil)\
**Replies:** 1\
**Last updated:** [April 12, 2023, 3:36pm UTC](https://community.temporal.io/t/workflow-timeout-detection/7884 "2023-04-12T15:36:54Z")

</div>

Hi, We have our setup like this: we have a non temporal service which calls a temporal service to initiate a temporal workflow. I want to set timeout for a temporal workflow as 30 days. We are achieving that with: Wor…

---

## [A sub-process with workflow.Sleep() encountered non-deterministic error after Cassandra server migration](https://community.temporal.io/t/a-sub-process-with-workflow-sleep-encountered-non-deterministic-error-after-cassandra-server-migration/7131)

<div class="topic-metadata">

**Author:** [@Bryan](https://community.temporal.io/u/Bryan)\
**Replies:** 20\
**Last updated:** [February 8, 2023, 7:17am UTC](https://community.temporal.io/t/a-sub-process-with-workflow-sleep-encountered-non-deterministic-error-after-cassandra-server-migration/7131 "2023-02-08T07:17:23Z")

</div>

Our workflow has a sub-process, in which it will call an activity (check delivery status), check the result, then wait (sleep) for 3 hours and repeat the process if delivery is not success. The loop will go on until 2 da…

---

## [Dealing with multiple runaway Workflows](https://community.temporal.io/t/dealing-with-multiple-runaway-workflows/5991)

<div class="topic-metadata">

**Author:** [@llcooll](https://community.temporal.io/u/llcooll)\
**Replies:** 1\
**Last updated:** [September 16, 2022, 2:02pm UTC](https://community.temporal.io/t/dealing-with-multiple-runaway-workflows/5991 "2022-09-16T14:02:51Z")

</div>

I have a Workflow called “processData”. When testing this Workflow, I unintentionally started a large number (100s-1000s) with a very large retry number and no timeout. Because the inputs are bad and the Workflow can’t p…

---

## [SignalWithStartWorkflow behaviour with context.WithTimeout](https://community.temporal.io/t/signalwithstartworkflow-behaviour-with-context-withtimeout/3909)

<div class="topic-metadata">

**Author:** [@Vikas\_NS](https://community.temporal.io/u/Vikas_NS)\
**Replies:** 5\
**Last updated:** [February 4, 2022, 9:42pm UTC](https://community.temporal.io/t/signalwithstartworkflow-behaviour-with-context-withtimeout/3909 "2022-02-04T21:42:13Z")

</div>

Usecase Currently Temporal invokes SignalWithStartWorkflow to signal system archival workflows as shown below. And the signalTimeout is set to 300ms. signalCtx, cancel := context.WithTimeout(context.Background(), sign…

---

## [Updatable Await](https://community.temporal.io/t/updatable-await/2690)

<div class="topic-metadata">

**Author:** [@Maggie](https://community.temporal.io/u/Maggie)\
**Replies:** 1\
**Last updated:** [August 10, 2021, 3:57pm UTC](https://community.temporal.io/t/updatable-await/2690 "2021-08-10T15:57:03Z")

</div>

Hi team, I came cross this example code (samples-java/UpdatableTimer.java at main · temporalio/samples-java · GitHub) for how to set up an update timer. Wondering if we can do the same thing to update the duration in aw…

---

## [Best way to support a long-running Activity without running into an Activity Timeout Error?](https://community.temporal.io/t/best-way-to-support-a-long-running-activity-without-running-into-an-activity-timeout-error/2608)

<div class="topic-metadata">

**Author:** [@orcas333](https://community.temporal.io/u/orcas333)\
**Replies:** 1\
**Last updated:** [July 23, 2021, 5:29pm UTC](https://community.temporal.io/t/best-way-to-support-a-long-running-activity-without-running-into-an-activity-timeout-error/2608 "2021-07-23T17:29:07Z")

</div>

I have a Temporal Activity that pulls data from an external source can takes upwards of \>40 sec or many minutes to complete. Currently, my Temporal Activity runs into an activity timeout error regularly. "activity timeo…

---

## [Activity Timeouts and child workflows](https://community.temporal.io/t/activity-timeouts-and-child-workflows/2517)

<div class="topic-metadata">

**Author:** [@cg1972](https://community.temporal.io/u/cg1972)\
**Replies:** 2\
**Last updated:** [July 15, 2021, 12:09am UTC](https://community.temporal.io/t/activity-timeouts-and-child-workflows/2517 "2021-07-15T00:09:28Z")

</div>

We have an activity that is responsible for triggering a number of “child” workflows and then waiting for them to all complete before returning. If this activity times out because the worker is not available and then ret…

---

## [Connection Timeout when connecting to Docker based Temporal setup](https://community.temporal.io/t/connection-timeout-when-connecting-to-docker-based-temporal-setup/2448)

<div class="topic-metadata">

**Author:** [@Faizan\_Kamal](https://community.temporal.io/u/Faizan_Kamal)\
**Replies:** 1\
**Last updated:** [June 23, 2021, 5:42pm UTC](https://community.temporal.io/t/connection-timeout-when-connecting-to-docker-based-temporal-setup/2448 "2021-06-23T17:42:21Z")

</div>

Hi, I have Temporal setup in a different machine. I am able to access Temporal UI from my machine but when I try to eexecute below code i get connection timeout error. Please help I have used the docker imaged mentione…

---

## [Activity stuck after activity timeout](https://community.temporal.io/t/activity-stuck-after-activity-timeout/2255)

<div class="topic-metadata">

**Author:** [@Severyn\_Lisovsky](https://community.temporal.io/u/Severyn_Lisovsky)\
**Replies:** 9\
**Last updated:** [June 2, 2021, 8:03am UTC](https://community.temporal.io/t/activity-stuck-after-activity-timeout/2255 "2021-06-02T08:03:50Z")

</div>

We have “map-reduce like” workflow and we run long-running activities (~ 1-10 min). Activities send heartbeat every ~15 sec. Time from time - activity gets stuck on temporal (getting activity timeout) and afterwards it h…

---

## [How does a retry policy impact the activity timeouts?](https://community.temporal.io/t/how-does-a-retry-policy-impact-the-activity-timeouts/451)

<div class="topic-metadata">

**Author:** [@ringods](https://community.temporal.io/u/ringods)\
**Replies:** 1\
**Last updated:** [August 13, 2020, 7:58pm UTC](https://community.temporal.io/t/how-does-a-retry-policy-impact-the-activity-timeouts/451 "2020-08-13T19:58:09Z")

</div>

I would like to understand the impact and/or correlation between activity options and a retry policy. At the moment, I assume that the activity options I use to execute an activity in a workflow are for a single executio…
