# Timeout for snapshot process

**URL:** <https://discuss.elastic.co/t/timeout-for-snapshot-process/262640>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [January 29, 2021, 11:46am UTC](https://discuss.elastic.co/t/timeout-for-snapshot-process/262640 "2021-01-29T11:46:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreekanth](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@sreekanth](https://discuss.elastic.co/u/sreekanth)\
**Post date:** [January 29, 2021, 11:46am UTC](https://discuss.elastic.co/t/timeout-for-snapshot-process/262640/1 "2021-01-29T11:46:09Z")

</div>

Hi,  
Anyway to set timeout for snapshot process? I am running with "?wait\_for\_completion=true" . Some times it gets stuck for a long time. I know that it should finish by 10min for the data i have. Anyway to set a timeout, so that it gets timeout and my cronjob can start a fresh job after next interval?

---

<div class="post-metadata">

**Author:** ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)\
**Post date:** [January 29, 2021, 12:12pm UTC](https://discuss.elastic.co/t/timeout-for-snapshot-process/262640/2 "2021-01-29T12:12:47Z")

</div>

Hi @sreekanth ,

you can [delete the snapshot](https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-snapshot-api.html) which will abort the process.

However, if you are confident that it should complete within 10 minutes, it might be worthwhile looking into why it does not? What version are you on and did you try to examine `_nodes/hot_threads` while the snapshot is stuck?

---

<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:** [February 26, 2021, 12:13pm UTC](https://discuss.elastic.co/t/timeout-for-snapshot-process/262640/3 "2021-02-26T12:13:05Z")

</div>

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