# Datafeed query\_delay not that random

**URL:** <https://discuss.elastic.co/t/datafeed-query-delay-not-that-random/102592>\
**Category:** Elasticsearch\
**Created:** [October 3, 2017, 4:13pm UTC](https://discuss.elastic.co/t/datafeed-query-delay-not-that-random/102592 "2017-10-03T16:13:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [October 3, 2017, 4:13pm UTC](https://discuss.elastic.co/t/datafeed-query-delay-not-that-random/102592/1 "2017-10-03T16:13:47Z")

</div>

When I create a datafeed using "PUT \_xpack/ml/datafeeds/foo" it comes back with a random query\_delay added, as documented. But all the datafeeds created through the wizards have a query\_delay set to 60. Is that an issue?

---

<div class="post-metadata">

**Author:** ![dmitri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitri/32/17997_2.png) [@dmitri](https://discuss.elastic.co/u/dmitri)\
**Post date:** [October 3, 2017, 4:42pm UTC](https://discuss.elastic.co/t/datafeed-query-delay-not-that-random/102592/2 "2017-10-03T16:42:09Z")

</div>

Hi Badger,

Thank you so much for spotting this inconsistency. Indeed, the UI is setting the `query_delay` from the wizards to the default of 60 seconds. Thank you for this feedback, we'll rectify in the next minor release.

In the meantime, if you need to change the `query_delay` on existing jobs, you can either do so using the edit job button in the UI or using the [Update Datafeed API](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/ml-update-datafeed.html).

Kind regards,  
Dimitris

---

<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:** [October 31, 2017, 4:42pm UTC](https://discuss.elastic.co/t/datafeed-query-delay-not-that-random/102592/3 "2017-10-31T16:42:34Z")

</div>

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