# Workflow overridden by another

**URL:** <https://community.n8n.io/t/workflow-overridden-by-another/5981>\
**Category:** Questions\
**Tags:** core\
**Created:** [May 25, 2021, 1:32pm UTC](https://community.n8n.io/t/workflow-overridden-by-another/5981 "2021-05-25T13:32:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandoche](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/sandoche/32/4907_2.png) [@Sandoche](https://community.n8n.io/u/Sandoche)\
**Post date:** [May 25, 2021, 1:32pm UTC](https://community.n8n.io/t/workflow-overridden-by-another/5981/1 "2021-05-25T13:32:40Z")

</div>

Hi,

I made a flow with a sleep function in javascript (similar to this one: [https://n8n.io/workflows/948](https://n8n.io/workflows/948)), the flow is triggered by a typeform entry and is followed by a 4h sleep then a telegram message is sent by a bot.

The problem I am facing is that if a user A input something and 1h later a user B, I will only receive the telegram message of the user B. Because the user A flow has been overridden somehow by the user B.

Is there a way to avoid this to happen?

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [May 25, 2021, 2:20pm UTC](https://community.n8n.io/t/workflow-overridden-by-another/5981/2 "2021-05-25T14:20:43Z")

</div>

Hey @Sandoche!

Welcome to the community 👋

As the workflow is triggered again, the previous execution data gets deleted. The workflow doesn’t have access to the previous execution data. I would suggest you break down the workflow into two workflows:  
Workflow 1: Send data from Typeform to Google Sheets (or any other database you prefer)  
Workflow 2: Setup a Cron node to trigger the workflow every 4 hours. This workflow will get the new data in the Google Sheets node and send a message on Telegram. In this workflow, we are using the concept of polling. You can read more about it here: [Creating triggers for n8n workflows using polling ⏲](https://n8n.io/blog/creating-triggers-for-n8n-workflows-using-polling/)

---

<div class="post-metadata">

**Author:** ![Sandoche](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/sandoche/32/4907_2.png) [@Sandoche](https://community.n8n.io/u/Sandoche)\
**Post date:** [May 25, 2021, 4:24pm UTC](https://community.n8n.io/t/workflow-overridden-by-another/5981/3 "2021-05-25T16:24:46Z")

</div>

Thanks that looks awesome!

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [May 26, 2021, 7:39am UTC](https://community.n8n.io/t/workflow-overridden-by-another/5981/4 "2021-05-26T07:39:33Z")

</div>

Let us know if you still have more questions 🙂

---

<div class="post-metadata">

**Author:** ![Sandoche](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/sandoche/32/4907_2.png) [@Sandoche](https://community.n8n.io/u/Sandoche)\
**Post date:** [May 31, 2021, 9:32am UTC](https://community.n8n.io/t/workflow-overridden-by-another/5981/5 "2021-05-31T09:32:17Z")

</div>

Very nice of you.

Just one questions out of curiosity, would this work for me: [Scaling n8n | Docs](https://docs.n8n.io/reference/scaling-n8n.html)

Could setting up this queue system avoid to get the previous data deleted? or is it unrelated?

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [May 31, 2021, 11:25am UTC](https://community.n8n.io/t/workflow-overridden-by-another/5981/6 "2021-05-31T11:25:14Z")

</div>

This is unrelated. If you’re hosting n8n on your own servers, and want to scale it, that’s when it is going to be helpful.
