# \#retries

**URL:** https://community.temporal.io/tag/retries/19.md

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

---

## [Retry policy for activity failed due to worker deployments](https://community.temporal.io/t/retry-policy-for-activity-failed-due-to-worker-deployments/19301)

<div class="topic-metadata">

**Author:** [@SB\_rb](https://community.temporal.io/u/SB_rb)\
**Replies:** 1\
**Last updated:** [March 1, 2026, 2:57am UTC](https://community.temporal.io/t/retry-policy-for-activity-failed-due-to-worker-deployments/19301 "2026-03-01T02:57:34Z")

</div>

We have a multi-step workflow which runs for multiple days. Some activities submit a batch job to external service and poll for the results in a sleep-poll-sleep loop. The results can take up to days to complete. The pol…

---

## [NextRetryDelay issue in Activity](https://community.temporal.io/t/nextretrydelay-issue-in-activity/18775)

<div class="topic-metadata">

**Author:** [@vivek6190](https://community.temporal.io/u/vivek6190)\
**Replies:** 12\
**Last updated:** [December 25, 2025, 4:28am UTC](https://community.temporal.io/t/nextretrydelay-issue-in-activity/18775 "2025-12-25T04:28:12Z")

</div>

We have an activity that must not execute during a fixed downtime window (02:00–02:30 IST). If the activity starts within the downtime window, we immediately fail it and return a failure with an explicit nextRetryDelay, …

---

## [When it startToCloseTimeout happens - Will Temporal Restart the worker server on a system crash?](https://community.temporal.io/t/when-it-starttoclosetimeout-happens-will-temporal-restart-the-worker-server-on-a-system-crash/17513)

<div class="topic-metadata">

**Author:** [@superjose](https://community.temporal.io/u/superjose)\
**Replies:** 4\
**Last updated:** [June 7, 2025, 5:22am UTC](https://community.temporal.io/t/when-it-starttoclosetimeout-happens-will-temporal-restart-the-worker-server-on-a-system-crash/17513 "2025-06-07T05:22:03Z")

</div>

I’ve been digging into the retries tag, watched Maxim’s excellent YouTube video on the 4 timeouts, and read the accompanying blog post. I’m running Temporal on a single server that handles both the Workflow and Worker. …

---

## [How to save all retry attempt failure logs](https://community.temporal.io/t/how-to-save-all-retry-attempt-failure-logs/14903)

<div class="topic-metadata">

**Author:** [@Mohammad\_Asghari](https://community.temporal.io/u/Mohammad_Asghari)\
**Replies:** 1\
**Last updated:** [October 28, 2024, 5:13pm UTC](https://community.temporal.io/t/how-to-save-all-retry-attempt-failure-logs/14903 "2024-10-28T17:13:52Z")

</div>

Hi, is there any way to save and see all of activity failure logs(stackTrace and stackTrace) not just the last one?

---

## [Activity completes long after ScheduleToCloseTimeout](https://community.temporal.io/t/activity-completes-long-after-scheduletoclosetimeout/10298)

<div class="topic-metadata">

**Author:** [@julienkb](https://community.temporal.io/u/julienkb)\
**Replies:** 4\
**Last updated:** [July 25, 2024, 12:08pm UTC](https://community.temporal.io/t/activity-completes-long-after-scheduletoclosetimeout/10298 "2024-07-25T12:08:00Z")

</div>

Hi Temporal experts, We have a temporal activity that we use to poll whether some action has occurred by a certain time. The activity returns an error if the action hasn’t occurred, and uses the following activity optio…

---

## [Reset workflow with long running activities broken into launch and watch activities](https://community.temporal.io/t/reset-workflow-with-long-running-activities-broken-into-launch-and-watch-activities/11192)

<div class="topic-metadata">

**Author:** [@garima](https://community.temporal.io/u/garima)\
**Replies:** 3\
**Last updated:** [February 29, 2024, 11:09pm UTC](https://community.temporal.io/t/reset-workflow-with-long-running-activities-broken-into-launch-and-watch-activities/11192 "2024-02-29T23:09:02Z")

</div>

Hello, I have a long running activity that launches a job on another compute platform and polls for the status until completion. I have a requirement to retry submission of the job n in case of failure. So to have the i…

---

## [Temporal Retry Async Activities](https://community.temporal.io/t/temporal-retry-async-activities/10733)

<div class="topic-metadata">

**Author:** [@Arian\_Bessonart](https://community.temporal.io/u/Arian_Bessonart)\
**Replies:** 3\
**Last updated:** [January 22, 2024, 6:49pm UTC](https://community.temporal.io/t/temporal-retry-async-activities/10733 "2024-01-22T18:49:19Z")

</div>

Hi all. I would like some advice on the following use case. I have a workflow with the following shape: fun worklowMainMethod(): Any { val userResponse = createAndWaitForUserResponse() // child workflow creat…

---

## [Activity retries and alerting](https://community.temporal.io/t/activity-retries-and-alerting/3484)

<div class="topic-metadata">

**Author:** [@Nathan](https://community.temporal.io/u/Nathan)\
**Replies:** 8\
**Last updated:** [November 27, 2023, 3:27pm UTC](https://community.temporal.io/t/activity-retries-and-alerting/3484 "2023-11-27T15:27:59Z")

</div>

Hi! I spent quite some time for the last few months to learn about Temporal, and now I’m planning to deploy it, I’ve got some questions about retrying an activity. I read different topics without finding an answer, so h…

---

## [Understand Workflow.sleep behaviors / internals](https://community.temporal.io/t/understand-workflow-sleep-behaviors-internals/3953)

<div class="topic-metadata">

**Author:** [@Andy\_Xu](https://community.temporal.io/u/Andy_Xu)\
**Replies:** 11\
**Last updated:** [August 10, 2023, 3:00pm UTC](https://community.temporal.io/t/understand-workflow-sleep-behaviors-internals/3953 "2023-08-10T15:00:38Z")

</div>

I’m trying to understand how Workflow.sleep works/implemented internally, and how Temporal wakes up slept workflow on scheduled time (or after certain sleeping period). It seems to me that Temporal has some sort of sched…

---

## [Retry Policy for 10, 20, 30 minutes](https://community.temporal.io/t/retry-policy-for-10-20-30-minutes/9014)

<div class="topic-metadata">

**Author:** [@kishore\_kumar](https://community.temporal.io/u/kishore_kumar)\
**Replies:** 5\
**Last updated:** [August 1, 2023, 9:29am UTC](https://community.temporal.io/t/retry-policy-for-10-20-30-minutes/9014 "2023-08-01T09:29:18Z")

</div>

WIth temporal retry policy we can achieve retry time as 10, 20, 40 minutes with backoffCoefficient as 2, but i need to achieve 10, 20, 30 minutes… how can it be achieved? using typescript

---

## [Get the no.of retries done till now for an activity inside the activity code](https://community.temporal.io/t/get-the-no-of-retries-done-till-now-for-an-activity-inside-the-activity-code/8787)

<div class="topic-metadata">

**Author:** [@kishore\_kumar](https://community.temporal.io/u/kishore_kumar)\
**Replies:** 2\
**Last updated:** [July 11, 2023, 4:13am UTC](https://community.temporal.io/t/get-the-no-of-retries-done-till-now-for-an-activity-inside-the-activity-code/8787 "2023-07-11T04:13:13Z")

</div>

is there any way to get the retry attempt number inside the activity code, using typeScript sdk?

---

## [Are retry policies applied on child workflow cancellation?](https://community.temporal.io/t/are-retry-policies-applied-on-child-workflow-cancellation/8778)

<div class="topic-metadata">

**Author:** [@Allen\_George](https://community.temporal.io/u/Allen_George)\
**Replies:** 1\
**Last updated:** [July 10, 2023, 5:23pm UTC](https://community.temporal.io/t/are-retry-policies-applied-on-child-workflow-cancellation/8778 "2023-07-10T17:23:56Z")

</div>

It wasn’t clear to me from reading the docs whether retries policies applied to child workflow cancellation. Experimentally, it seems that retry policies are ignored, but I wanted to confirm that.

---

## [RetryOptions changed in new Java SDK release or a new bug introduced?](https://community.temporal.io/t/retryoptions-changed-in-new-java-sdk-release-or-a-new-bug-introduced/7701)

<div class="topic-metadata">

**Author:** [@kenand](https://community.temporal.io/u/kenand)\
**Replies:** 1\
**Last updated:** [March 27, 2023, 2:08pm UTC](https://community.temporal.io/t/retryoptions-changed-in-new-java-sdk-release-or-a-new-bug-introduced/7701 "2023-03-27T14:08:22Z")

</div>

Hello With java sdk 1.17.0 below code fragment was leading to unlimited number of retries with the activity, however upgrading to 1.19.1 i see that has changed. Not declaring .setMaximumAttempts or declaring and setting…

---

## [Resuming a failed workflow from the point of failure](https://community.temporal.io/t/resuming-a-failed-workflow-from-the-point-of-failure/7109)

<div class="topic-metadata">

**Author:** [@Siddharth\_Saxena](https://community.temporal.io/u/Siddharth_Saxena)\
**Replies:** 6\
**Last updated:** [February 7, 2023, 3:29am UTC](https://community.temporal.io/t/resuming-a-failed-workflow-from-the-point-of-failure/7109 "2023-02-07T03:29:49Z")

</div>

Hi team, I am a newbie. Would someone please help me understand if my workflow has 7 steps (activities). Workflow got failed while executing 5th one. How do I resume my workflow from the same point of failure. Please …

---

## [Is there any option to resume activity of failed workflow in the new workflow retried?](https://community.temporal.io/t/is-there-any-option-to-resume-activity-of-failed-workflow-in-the-new-workflow-retried/4195)

<div class="topic-metadata">

**Author:** [@Sharvari](https://community.temporal.io/u/Sharvari)\
**Replies:** 3\
**Last updated:** [February 1, 2023, 6:48am UTC](https://community.temporal.io/t/is-there-any-option-to-resume-activity-of-failed-workflow-in-the-new-workflow-retried/4195 "2023-02-01T06:48:00Z")

</div>

I have a workflow where debit was done but credit failed because of service unavailability. Activity level retry reached maximum attempts for credit service and workflow is marked as failure. We brought credit service up…

---

## [Configure Retrying workflow execution after temporal-worker outage](https://community.temporal.io/t/configure-retrying-workflow-execution-after-temporal-worker-outage/6393)

<div class="topic-metadata">

**Author:** [@Dmitriusan](https://community.temporal.io/u/Dmitriusan)\
**Replies:** 1\
**Last updated:** [November 2, 2022, 3:55pm UTC](https://community.temporal.io/t/configure-retrying-workflow-execution-after-temporal-worker-outage/6393 "2022-11-02T15:55:47Z")

</div>

Hi, Recently our DevOps team has been updating infrastructure (terminating nodes), and the temporal worker was being restarted/redeployed as well. One workflow has failed with Caused By: java.lang.RuntimeException: Wo…

---

## [Workflow and Activity retries](https://community.temporal.io/t/workflow-and-activity-retries/4404)

<div class="topic-metadata">

**Author:** [@amlanroy1980](https://community.temporal.io/u/amlanroy1980)\
**Replies:** 2\
**Last updated:** [October 23, 2022, 9:01pm UTC](https://community.temporal.io/t/workflow-and-activity-retries/4404 "2022-10-23T21:01:50Z")

</div>

I wanted to understand how Workflow and Activity retries are implemented in Temporal. As per my understanding, Temporal creates corresponding Timers in the Executions table. Then these Timer tasks are moved to the Task Q…

---

## [Long running workflow with signal and retries](https://community.temporal.io/t/long-running-workflow-with-signal-and-retries/5482)

<div class="topic-metadata">

**Author:** [@Pushkar\_Desai](https://community.temporal.io/u/Pushkar_Desai)\
**Replies:** 5\
**Last updated:** [July 29, 2022, 12:42pm UTC](https://community.temporal.io/t/long-running-workflow-with-signal-and-retries/5482 "2022-07-29T12:42:43Z")

</div>

I have a workflow which sends an http requests via an activity and then waits for another http request which acts as a response of first request. I am achieving this with signal. (the body of second http request is sen…

---

## [Continue as new when reaching 5 000 events limit](https://community.temporal.io/t/continue-as-new-when-reaching-5-000-events-limit/4260)

<div class="topic-metadata">

**Author:** [@kevind](https://community.temporal.io/u/kevind)\
**Replies:** 9\
**Last updated:** [July 6, 2022, 3:04am UTC](https://community.temporal.io/t/continue-as-new-when-reaching-5-000-events-limit/4260 "2022-07-06T03:04:13Z")

</div>

Hello everyone, We use temporal to orchestrate some long running tasks. Some of these tasks can span over 40 days. Most of the workflow time is spent awaiting for someone else to do something. Unfortunately we have no…

---

## [Retry activity formula](https://community.temporal.io/t/retry-activity-formula/4268)

<div class="topic-metadata">

**Author:** [@carrotcap3](https://community.temporal.io/u/carrotcap3)\
**Replies:** 5\
**Last updated:** [March 30, 2022, 10:26pm UTC](https://community.temporal.io/t/retry-activity-formula/4268 "2022-03-30T22:26:16Z")

</div>

Are the retrys for activities supposed to be retried at fixed intervals for every workflow instance? because right now they seem to not be. example workflow with activity defined as follows: @ActivityStub(startToClose =…

---

## [VisibilityUpsertExecution error unable to search attribute hogging temporal queue and causing other requests to temporal fail](https://community.temporal.io/t/visibilityupsertexecution-error-unable-to-search-attribute-hogging-temporal-queue-and-causing-other-requests-to-temporal-fail/4222)

<div class="topic-metadata">

**Author:** [@ridwan.santoso](https://community.temporal.io/u/ridwan.santoso)\
**Replies:** 4\
**Last updated:** [March 21, 2022, 2:09pm UTC](https://community.temporal.io/t/visibilityupsertexecution-error-unable-to-search-attribute-hogging-temporal-queue-and-causing-other-requests-to-temporal-fail/4222 "2022-03-21T14:09:05Z")

</div>

Hi All, Need help here. Got problem where requests in temporal fail due to time out because queue is full. The suspect why queue is full is due to old requests to Cassandra fail due to some attributes not found in tabl…

---

## [Not able to skip retry for exceptions coming from microservices](https://community.temporal.io/t/not-able-to-skip-retry-for-exceptions-coming-from-microservices/4197)

<div class="topic-metadata">

**Author:** [@Sharvari](https://community.temporal.io/u/Sharvari)\
**Replies:** 1\
**Last updated:** [March 17, 2022, 1:26pm UTC](https://community.temporal.io/t/not-able-to-skip-retry-for-exceptions-coming-from-microservices/4197 "2022-03-17T13:26:29Z")

</div>

We don’t want to retry for business exceptions like debit account not found we understand that there is an option as SetDonotretry But temporal is not giving same error the debit microservice threw. Debit microservice…

---

## [New workflow initiated with retry workflow is not picking execution from failed activity of previous failed workflow](https://community.temporal.io/t/new-workflow-initiated-with-retry-workflow-is-not-picking-execution-from-failed-activity-of-previous-failed-workflow/4194)

<div class="topic-metadata">

**Author:** [@Sharvari](https://community.temporal.io/u/Sharvari)\
**Replies:** 1\
**Last updated:** [March 16, 2022, 1:57pm UTC](https://community.temporal.io/t/new-workflow-initiated-with-retry-workflow-is-not-picking-execution-from-failed-activity-of-previous-failed-workflow/4194 "2022-03-16T13:57:48Z")

</div>

I have a workflow where debit was done but credit failed because of service unavailability. Activity level retry reached maximum attempts for credit service and workflow is marked as failure. We brought credit service u…

---

## [How to trigger activity retry from activity interceptor](https://community.temporal.io/t/how-to-trigger-activity-retry-from-activity-interceptor/3951)

<div class="topic-metadata">

**Author:** [@tempuser](https://community.temporal.io/u/tempuser)\
**Replies:** 6\
**Last updated:** [February 10, 2022, 8:26pm UTC](https://community.temporal.io/t/how-to-trigger-activity-retry-from-activity-interceptor/3951 "2022-02-10T20:26:16Z")

</div>

Hi Temporal Team, I’m trying to trigger an activity retry by throwing an exception from implementation class of ActivityInboundCallsInterceptor. However, it fails the workflow. Is there a way to trigger an activity re…

---

## [How are Temporal Activities better than a while loop which retries](https://community.temporal.io/t/how-are-temporal-activities-better-than-a-while-loop-which-retries/3916)

<div class="topic-metadata">

**Author:** [@Vikas\_NS](https://community.temporal.io/u/Vikas_NS)\
**Replies:** 1\
**Last updated:** [February 5, 2022, 5:30pm UTC](https://community.temporal.io/t/how-are-temporal-activities-better-than-a-while-loop-which-retries/3916 "2022-02-05T17:30:11Z")

</div>

I want to understand why I need to use temporal activities instead of writing a retry logic myself as shown below. One thing I can think right of the bat is, temporal activities are more cleaner code than the while l…

---

## [Different retry algorithm for activities](https://community.temporal.io/t/different-retry-algorithm-for-activities/3765)

<div class="topic-metadata">

**Author:** [@nitesh237](https://community.temporal.io/u/nitesh237)\
**Replies:** 3\
**Last updated:** [January 17, 2022, 7:19pm UTC](https://community.temporal.io/t/different-retry-algorithm-for-activities/3765 "2022-01-17T19:19:25Z")

</div>

I have been going through the temporal go developers guide. One thing I noticed in the “Activity and Workflow Retries” section is that temporal currently supports exponential backoff retry policy. However, for our use …

---

## [How to make an activity retry after a dynamic period?](https://community.temporal.io/t/how-to-make-an-activity-retry-after-a-dynamic-period/3421)

<div class="topic-metadata">

**Author:** [@Vikas\_NS](https://community.temporal.io/u/Vikas_NS)\
**Replies:** 1\
**Last updated:** [November 18, 2021, 8:47pm UTC](https://community.temporal.io/t/how-to-make-an-activity-retry-after-a-dynamic-period/3421 "2021-11-18T20:47:42Z")

</div>

Usecase I don’t want to hardcode the retry interval. I want to dynamically set the retry interval as it is decided by the end system.

---

## [What’s the recommended way to retry groups of related activities?](https://community.temporal.io/t/what-s-the-recommended-way-to-retry-groups-of-related-activities/3098)

<div class="topic-metadata">

**Author:** [@jeff](https://community.temporal.io/u/jeff)\
**Replies:** 3\
**Last updated:** [October 5, 2021, 9:11pm UTC](https://community.temporal.io/t/what-s-the-recommended-way-to-retry-groups-of-related-activities/3098 "2021-10-05T21:11:06Z")

</div>

For example, suppose in the middle of a workflow I have two activities ActivityA and ActivityB . ActivityA modifies the state of some external system, and ActivityB can only run while this external system is in a compati…

---

## [Handling logical retries as a dependency of multiple activities](https://community.temporal.io/t/handling-logical-retries-as-a-dependency-of-multiple-activities/3001)

<div class="topic-metadata">

**Author:** [@akd](https://community.temporal.io/u/akd)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 12:26am UTC](https://community.temporal.io/t/handling-logical-retries-as-a-dependency-of-multiple-activities/3001 "2021-09-23T00:26:53Z")

</div>

See plantUML diagram It is difficult to write this eloquently, but I am looking for suggestions on how to handle a workflow which has a need for retries outside of the atomic “activity” unit provided by temporal. I also…

---

## [How do retries/crashes affect a long running polling activity, and a workflow?](https://community.temporal.io/t/how-do-retries-crashes-affect-a-long-running-polling-activity-and-a-workflow/2992)

<div class="topic-metadata">

**Author:** [@Jamie\_Sebastian](https://community.temporal.io/u/Jamie_Sebastian)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 5:19pm UTC](https://community.temporal.io/t/how-do-retries-crashes-affect-a-long-running-polling-activity-and-a-workflow/2992 "2021-09-22T17:19:00Z")

</div>

Hi, I am new to Temporal and I have a few questions about a scenario about long-running polling for a state, and for actions upon state transitions. After some research, I believe the following will work but would like s…

[Next page](https://community.temporal.io/tag/retries/19.md?match_all_tags=true&page=1&tags%5B%5D=retries)
