# JDBC Input Plugin: Behavior if job runs longer than schedule period? Just waits until next schedule time?

**URL:** <https://discuss.elastic.co/t/jdbc-input-plugin-behavior-if-job-runs-longer-than-schedule-period-just-waits-until-next-schedule-time/227382>\
**Category:** Logstash\
**Created:** [April 9, 2020, 5:59pm UTC](https://discuss.elastic.co/t/jdbc-input-plugin-behavior-if-job-runs-longer-than-schedule-period-just-waits-until-next-schedule-time/227382 "2020-04-09T17:59:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Rice](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathan_rice/32/11238_2.png) [@Jonathan\_Rice](https://discuss.elastic.co/u/Jonathan_Rice)\
**Post date:** [April 9, 2020, 5:59pm UTC](https://discuss.elastic.co/t/jdbc-input-plugin-behavior-if-job-runs-longer-than-schedule-period-just-waits-until-next-schedule-time/227382/1 "2020-04-09T17:59:34Z")

</div>

Say I give the JDBC Input Plugin a schedule to run every 5 minutes, but the Logstash job takes 6 minutes to run. Does the next job then run immediately, or does it wait until the next 5-minute wall-clock time is reached (i.e., it waits 4 minutes after the long 6-minute job finishes)? I presume it does the latter - just kicks off jobs according to the wall-clock scheduled times, if it is currently not running a job. Can someone confirm?

---

<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:** [May 7, 2020, 5:59pm UTC](https://discuss.elastic.co/t/jdbc-input-plugin-behavior-if-job-runs-longer-than-schedule-period-just-waits-until-next-schedule-time/227382/2 "2020-05-07T17:59:35Z")

</div>

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