# Older workflow not re-executed and new workflows not initiated after stop/start temporal server

**URL:** <https://community.temporal.io/t/older-workflow-not-re-executed-and-new-workflows-not-initiated-after-stop-start-temporal-server/2204>\
**Category:** Community Support\
**Tags:** temporal-031, workflow-config\
**Created:** [May 21, 2021, 1:22pm UTC](https://community.temporal.io/t/older-workflow-not-re-executed-and-new-workflows-not-initiated-after-stop-start-temporal-server/2204 "2021-05-21T13:22:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anil\_kumble](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/anil_kumble/32/954_2.png) [@anil\_kumble](https://community.temporal.io/u/anil_kumble)\
**Post date:** [May 21, 2021, 1:22pm UTC](https://community.temporal.io/t/older-workflow-not-re-executed-and-new-workflows-not-initiated-after-stop-start-temporal-server/2204/1 "2021-05-21T13:22:13Z")

</div>

Team,

I ran the sample HelloActivity and I included `Thread.sleep` for 20 secs in my activity method to test the temporal server failover.

1. I Started temporal server
2. I ran the worker and started my workflow (say wf1)
3. I quitted my temporal server (My activity is in running status in the meantime)
4. After a couple of minutes I started my Temporal server.

My previous workflow(wf1) is still in **running** status. It should have to replay my workflow history and run my activity again right? But it shouldn’t run it.

I tried creating new workflows(say N-wf2, N-wf3, etc…) but it is not executed and not even shown in the web UI.

And then I terminated my previous workflow(wf1) which is in running status via web UI, then I created new workflows(say AT-wf1, AT-wf2, etc…) that are working as expected.

Two questions,

1. My first workflow(wf1) should have to be completed successfully. But it won’t
2. The new workflows(N-wf2, N-wf3, etc…) which are created after re-starting my temporal server should have to be executed. But it not even initiated.

Kindly give your inputs, I hope I conveyed my issue.

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [May 21, 2021, 2:52pm UTC](https://community.temporal.io/t/older-workflow-not-re-executed-and-new-workflows-not-initiated-after-stop-start-temporal-server/2204/2 "2021-05-21T14:52:45Z")

</div>

Would you post your workflow execution history here?

---

<div class="post-metadata">

**Author:** ![anil\_kumble](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/anil_kumble/32/954_2.png) [@anil\_kumble](https://community.temporal.io/u/anil_kumble)\
**Post date:** [May 21, 2021, 3:24pm UTC](https://community.temporal.io/t/older-workflow-not-re-executed-and-new-workflows-not-initiated-after-stop-start-temporal-server/2204/3 "2021-05-21T15:24:47Z")

</div>

Please find the attachment

 ![Screenshot 2021-05-21 at 8.52.35 PM](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/1X/4a6166b0f1e19b9878de5a3eddd26af3ece08279.png)

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [May 21, 2021, 3:28pm UTC](https://community.temporal.io/t/older-workflow-not-re-executed-and-new-workflows-not-initiated-after-stop-start-temporal-server/2204/4 "2021-05-21T15:28:42Z")

</div>

Would you show the “Full Details” view or the JSON of the history (Export button). Also, the summary view of the workflow.

---

<div class="post-metadata">

**Author:** ![anil\_kumble](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/anil_kumble/32/954_2.png) [@anil\_kumble](https://community.temporal.io/u/anil_kumble)\
**Post date:** [May 21, 2021, 4:53pm UTC](https://community.temporal.io/t/older-workflow-not-re-executed-and-new-workflows-not-initiated-after-stop-start-temporal-server/2204/5 "2021-05-21T16:53:07Z")

</div>

Please refer the image for summary

 ![Screenshot 2021-05-21 at 10.18.31 PM](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/1X/8511cebaef559c8659f86f4dc81850af9ea21e44.png)  
 ![Screenshot 2021-05-21 at 10.18.48 PM](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/1X/00c9ddd45a09542224fabbda5513f0c2ef1d1d71.png)

Find below the Json History

> [{“eventId”:“1”,“eventTime”:{“seconds”:“1621600664”,“nanos”:382172168},“eventType”:“EVENT\_TYPE\_WORKFLOW\_EXECUTION\_STARTED”,“version”:“0”,“taskId”:“10485817”,“workflowExecutionStartedEventAttributes”:{“workflowType”:{“name”:“GreetingWorkflow”},“parentWorkflowNamespace”:“”,“parentInitiatedEventId”:“0”,“taskQueue”:{“name”:“HelloActivityTaskQueue”,“kind”:“TASK\_QUEUE\_KIND\_NORMAL”},“input”:{“payloads”:[{“metadata”:{“encoding”:“anNvbi9wbGFpbg==”},“data”:“IldvcmxkIg==”}]},“workflowExecutionTimeout”:{“seconds”:“0”,“nanos”:0},“workflowRunTimeout”:{“seconds”:“0”,“nanos”:0},“workflowTaskTimeout”:{“seconds”:“10”,“nanos”:0},“continuedExecutionRunId”:“”,“initiator”:“CONTINUE\_AS\_NEW\_INITIATOR\_UNSPECIFIED”,“originalExecutionRunId”:“75d09ba5-fd7e-42c2-b993-64a988770741”,“identity”:“800@Digitals-MacBook-Pro.local”,“firstExecutionRunId”:“75d09ba5-fd7e-42c2-b993-64a988770741”,“attempt”:1,“cronSchedule”:“”,“firstWorkflowTaskBackoff”:{“seconds”:“0”,“nanos”:0},“header”:{“fields”:{}}},“attributes”:“workflowExecutionStartedEventAttributes”},{“eventId”:“2”,“eventTime”:{“seconds”:“1621600664”,“nanos”:382224558},“eventType”:“EVENT\_TYPE\_WORKFLOW\_TASK\_SCHEDULED”,“version”:“0”,“taskId”:“10485818”,“workflowTaskScheduledEventAttributes”:{“taskQueue”:{“name”:“HelloActivityTaskQueue”,“kind”:“TASK\_QUEUE\_KIND\_NORMAL”},“startToCloseTimeout”:{“seconds”:“10”,“nanos”:0},“attempt”:1},“attributes”:“workflowTaskScheduledEventAttributes”},{“eventId”:“3”,“eventTime”:{“seconds”:“1621600664”,“nanos”:429544912},“eventType”:“EVENT\_TYPE\_WORKFLOW\_TASK\_STARTED”,“version”:“0”,“taskId”:“10485824”,“workflowTaskStartedEventAttributes”:{“scheduledEventId”:“2”,“identity”:“800@Digitals-MacBook-Pro.local”,“requestId”:“0f595c91-5edf-40ef-8b0c-c6584ccb4c3e”},“attributes”:“workflowTaskStartedEventAttributes”},{“eventId”:“4”,“eventTime”:{“seconds”:“1621600664”,“nanos”:628374141},“eventType”:“EVENT\_TYPE\_WORKFLOW\_TASK\_COMPLETED”,“version”:“0”,“taskId”:“10485827”,“workflowTaskCompletedEventAttributes”:{“scheduledEventId”:“2”,“startedEventId”:“3”,“identity”:“800@Digitals-MacBook-Pro.local”,“binaryChecksum”:“”},“attributes”:“workflowTaskCompletedEventAttributes”},{“eventId”:“5”,“eventTime”:{“seconds”:“1621600664”,“nanos”:628467531},“eventType”:“EVENT\_TYPE\_ACTIVITY\_TASK\_SCHEDULED”,“version”:“0”,“taskId”:“10485828”,“activityTaskScheduledEventAttributes”:{“activityId”:“818c7e2d-99fe-3b47-851e-57d9b74a7b24”,“activityType”:{“name”:“ComposeGreeting”},“namespace”:“”,“taskQueue”:{“name”:“HelloActivityTaskQueue”,“kind”:“TASK\_QUEUE\_KIND\_NORMAL”},“header”:{“fields”:{}},“input”:{“payloads”:[{“metadata”:{“encoding”:“anNvbi9wbGFpbg==”},“data”:“IkhlbCI=”},{“metadata”:{“encoding”:“anNvbi9wbGFpbg==”},“data”:“IldvcmxkIg==”}]},“scheduleToCloseTimeout”:{“seconds”:“0”,“nanos”:0},“scheduleToStartTimeout”:{“seconds”:“0”,“nanos”:0},“startToCloseTimeout”:{“seconds”:“1200”,“nanos”:0},“heartbeatTimeout”:{“seconds”:“0”,“nanos”:0},“workflowTaskCompletedEventId”:“4”,“retryPolicy”:{“nonRetryableErrorTypes”:,“initialInterval”:{“seconds”:“1”,“nanos”:0},“backoffCoefficient”:2,“maximumInterval”:{“seconds”:“100”,“nanos”:0},“maximumAttempts”:0}},“attributes”:“activityTaskScheduledEventAttributes”},{“eventId”:“6”,“eventTime”:{“seconds”:“1621600933”,“nanos”:17768158},“eventType”:“EVENT\_TYPE\_WORKFLOW\_EXECUTION\_TERMINATED”,“version”:“0”,“taskId”:“11534341”,“workflowExecutionTerminatedEventAttributes”:{“reason”:“”,“identity”:“”},“attributes”:“workflowExecutionTerminatedEventAttributes”}]

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [May 21, 2021, 5:45pm UTC](https://community.temporal.io/t/older-workflow-not-re-executed-and-new-workflows-not-initiated-after-stop-start-temporal-server/2204/6 "2021-05-21T17:45:36Z")

</div>

Your activity is scheduled with `StartToClose` timeout of 20 minutes. So when the worker goes down it times out after 20 minutes and retried. So nothing is expected to happen until 20 minutes passed. If this activity is expected to complete faster reduce the timeout value to get it retried faster. If the activity duration is indeed long then specify a shorter heartbeat timeout and make the activity heartbeat periodically. This way the worker failure will be detected faster.

---

<div class="post-metadata">

**Author:** ![anil\_kumble](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/anil_kumble/32/954_2.png) [@anil\_kumble](https://community.temporal.io/u/anil_kumble)\
**Post date:** [May 22, 2021, 4:52pm UTC](https://community.temporal.io/t/older-workflow-not-re-executed-and-new-workflows-not-initiated-after-stop-start-temporal-server/2204/7 "2021-05-22T16:52:04Z")

</div>

Okay, let me reduce the time out and check it

Thanks @maxim for your immediate response
