# Heartbeat - Avoid journey timeout

**URL:** https://discuss.elastic.co/t/heartbeat-avoid-journey-timeout/309421
**Category:** Beats
**Tags:** heartbeat
**Created:** [July 12, 2022, 12:51pm UTC](https://discuss.elastic.co/t/heartbeat-avoid-journey-timeout/309421 "2022-07-12T12:51:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Verdugo\_Gonzalo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/verdugo_gonzalo/32/37680_2.png) [@Verdugo\_Gonzalo](https://discuss.elastic.co/u/Verdugo_Gonzalo)
#### Post date: [July 12, 2022, 12:51pm UTC](https://discuss.elastic.co/t/heartbeat-avoid-journey-timeout/309421/1 "2022-07-12T12:51:44Z")

</div>

Hello,  
I'm working with synthetic monitoring.  
How can I prevent the journey from finishing when one of the steps throws an error or timeout and 2 steps remain pending? unfortunately I have a small number of logins on a website for security reasons.  
Is there a possibility to save the session in some constant?

---

<div class="post-metadata">

### Author: ![vigneshshanmugam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vigneshshanmugam/32/40324_2.png) [@vigneshshanmugam](https://discuss.elastic.co/u/vigneshshanmugam)
#### Post date: [July 18, 2022, 8:29pm UTC](https://discuss.elastic.co/t/heartbeat-avoid-journey-timeout/309421/2 "2022-07-18T20:29:58Z")

</div>

Hi @Verdugo_Gonzalo,

Unfortunately there is no way to replay a step when there are timeout errors from a specific Journey.

To get more details,

1. Does increasing the timeout helps in your scenario for the actions that are after your login attemps.
2. Would having a Retry option in Synthetics for steps solve your use-case?

If you can share a gist of what you are trying to do and how these steps are laid out, We might be able to suggest something else.

Thanks,  
Vignesh

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 15, 2022, 8:30pm UTC](https://discuss.elastic.co/t/heartbeat-avoid-journey-timeout/309421/3 "2022-08-15T20:30:54Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
