[
https://issues.apache.org/jira/browse/NIFI-11392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Payne updated NIFI-11392:
------------------------------
Fix Version/s: 1.22.0
> NiFi does not stop timely when using CRON scheduling
> ----------------------------------------------------
>
> Key: NIFI-11392
> URL: https://issues.apache.org/jira/browse/NIFI-11392
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.21.0
> Reporter: Michael W Moser
> Assignee: Michael W Moser
> Priority: Minor
> Fix For: 2.0.0, 1.22.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When using CRON scheduling on at least 1 processor in a flow, and any CRON
> driven processor has been scheduled at least once, then NiFi does not stop
> within the graceful.shutdown.seconds period and has to be killed. If
> possible it would be nice to clean this up.
> I setup GenerateFlowFile with a CRON schedule of "0 * * * * ?". After it has
> run once, I stopped NiFi and it was killed after 20 seconds instead of
> stopping in 2 or 3 seconds.
> 2023-04-06 14:58:07,495 INFO [main] org.apache.nifi.bootstrap.Command Apache
> NiFi has accepted the Shutdown Command and is shutting down now
> ...
> 2023-04-06 14:58:27,924 INFO [main] org.apache.nifi.bootstrap.Command NiFi
> PID [4625] shutdown in progress...
> 2023-04-06 14:58:27,953 WARN [main] org.apache.nifi.bootstrap.Command NiFi
> PID [4625] shutdown not completed after 20 seconds: Killing process
> 2023-04-06 14:58:27,985 INFO [main] org.apache.nifi.bootstrap.Command NiFi
> PID [4625] shutdown completed
--
This message was sent by Atlassian Jira
(v8.20.10#820010)