# "refresh" index as a background task

**URL:** <https://discuss.elastic.co/t/refresh-index-as-a-background-task/253280>\
**Category:** Elasticsearch\
**Created:** [October 26, 2020, 9:02am UTC](https://discuss.elastic.co/t/refresh-index-as-a-background-task/253280 "2020-10-26T09:02:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebuildy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ebuildy/32/6070_2.png) [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Post date:** [October 26, 2020, 9:02am UTC](https://discuss.elastic.co/t/refresh-index-as-a-background-task/253280/1 "2020-10-26T09:02:05Z")

</div>

We have a big index, calling "\_refresh" API take more than 30 secondes and timeout our HTTP client.

what about to add a new parameter `wait_for_completion` (like for reindex API), so this possible to run it asynchronously?

---

<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:** [November 23, 2020, 9:02am UTC](https://discuss.elastic.co/t/refresh-index-as-a-background-task/253280/2 "2020-11-23T09:02:11Z")

</div>

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