Logstash exec timeout

I have a long running task executed by exec input plugin, if the current task takes longer then the interval that I have set, does it simply cancel the current task and start a new one, or does it spawn a new child process to run a fresh exec?