Github user joewitt commented on the issue:
https://github.com/apache/nifi/pull/989
+1 as-is but do consider reducing from 30 secs to 5 secs. There is no
known reason why it should ever have to wait near 5 seconds even as currently
implemented particularly in the case of an unscheduling of the processor. Each
poll event immediately writes to the content repository.
Glad to hear wakeup does what is needed here at least for lifecycle calls
such as OnUnscheduled.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---