[ https://issues.apache.org/jira/browse/NIFI-11392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael W Moser reassigned NIFI-11392: -------------------------------------- Assignee: Michael W Moser > 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.20.0 > Reporter: Michael W Moser > Assignee: Michael W Moser > Priority: Minor > Time Spent: 10m > 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)