arpadboda commented on a change in pull request #735: WIP: MINIFICPP-1158 - 
Event driven processors can starve each other
URL: https://github.com/apache/nifi-minifi-cpp/pull/735#discussion_r382064259
 
 

 ##########
 File path: libminifi/src/CronDrivenSchedulingAgent.cpp
 ##########
 @@ -32,7 +32,7 @@ namespace apache {
 namespace nifi {
 namespace minifi {
 
-uint64_t CronDrivenSchedulingAgent::run(const std::shared_ptr<core::Processor> 
&processor, const std::shared_ptr<core::ProcessContext> &processContext,
+utils::ComplexResult CronDrivenSchedulingAgent::run(const 
std::shared_ptr<core::Processor> &processor, const 
std::shared_ptr<core::ProcessContext> &processContext,
                                         const 
std::shared_ptr<core::ProcessSessionFactory> &sessionFactory) {
   if (this->running_ && processor->isRunning()) {
     std::chrono::system_clock::time_point leap_nanos;
 
 Review comment:
   I mostly agree, but this is a *cron* based scheduler, which is the very rare 
case that makes usages of system_clock valid. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to