# Reindex API - failed reindex task response example

**URL:** <https://discuss.elastic.co/t/reindex-api-failed-reindex-task-response-example/282821>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting, reindex\
**Created:** [August 30, 2021, 1:29pm UTC](https://discuss.elastic.co/t/reindex-api-failed-reindex-task-response-example/282821 "2021-08-30T13:29:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![janesch97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/janesch97/32/93887_2.png) [@janesch97](https://discuss.elastic.co/u/janesch97)\
**Post date:** [August 30, 2021, 1:29pm UTC](https://discuss.elastic.co/t/reindex-api-failed-reindex-task-response-example/282821/1 "2021-08-30T13:29:32Z")

</div>

Hello,

I've been trying to implement a 'reindex complete' notification system using Watcher APIs. Reindex is triggered with `wait_for_completion=true` query parameter, so the reindex task is saved to `.tasks` index, that is queried every minute searching for completed reindex tasks.

I've already implemented the most of the logic but I can't find example of the response in case of failed reindex. I have also tried simulating this case by turning off one of the nodes, but with no luck.

If anyone could post the example of a failed reindex task document, it would be much appriciated.

Best regards.

---

<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:** [September 27, 2021, 1:30pm UTC](https://discuss.elastic.co/t/reindex-api-failed-reindex-task-response-example/282821/2 "2021-09-27T13:30:15Z")

</div>

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