MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / hasWorkToDo

Method hasWorkToDo

libminifi/src/SchedulingAgent.cpp:34–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace minifi {
33
34bool SchedulingAgent::hasWorkToDo(const std::shared_ptr<core::Processor>& processor) {
35 // Whether it has work to do
36 if (processor->getTriggerWhenEmpty() || !processor->hasIncomingConnections() || processor->flowFilesQueued())
37 return true;
38 else
39 return false;
40}
41
42std::future<utils::TaskRescheduleInfo> SchedulingAgent::enableControllerService(std::shared_ptr<core::controller::ControllerServiceNode> &serviceNode) {
43 logger_->log_info("Enabling CSN in SchedulingAgent %s", serviceNode->getName());

Callers

nothing calls this directly

Calls 3

getTriggerWhenEmptyMethod · 0.80
flowFilesQueuedMethod · 0.80

Tested by

no test coverage detected