| 32 | namespace minifi { |
| 33 | |
| 34 | bool 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 | |
| 42 | std::future<utils::TaskRescheduleInfo> SchedulingAgent::enableControllerService(std::shared_ptr<core::controller::ControllerServiceNode> &serviceNode) { |
| 43 | logger_->log_info("Enabling CSN in SchedulingAgent %s", serviceNode->getName()); |
nothing calls this directly
no test coverage detected