adamdebreceni commented on a change in pull request #1191: URL: https://github.com/apache/nifi-minifi-cpp/pull/1191#discussion_r734382743
########## File path: libminifi/src/core/Processor.cpp ########## @@ -411,6 +410,17 @@ std::string Processor::getInputRequirementAsString() const { return "ERROR_no_such_input_requirement"; } +void Processor::setMaxConcurrentTasks(const uint8_t tasks) { + if (isSingleThreaded() && tasks > 1) { + logger_->log_warn("Processor %s can not be run in parallel, its \"max concurrent tasks\" value is too high. " + "It was set to 1 from %d.", name_, tasks); Review comment: the `%d` format specifier might not be the correct one here, maybe `PRIu8`? -- 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. To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org