[
https://issues.apache.org/jira/browse/MINIFICPP-1222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Adam Hunyadi updated MINIFICPP-1222:
------------------------------------
Description:
*Background:*
The ExecutePythonProcessor is expected to have a limit on the maximal number of
concurrent tasks it can run. This
{{{color:#403294}{{max_concurrent_tasks}}{color}}} number is currently handled
incorrectly, and the processor is able to run any number of tasks at the same
time, but only {{{color:#403294}{{max_concurrent_tasks}}{color}}} script-engine
is reused.
*Proposal*:
We should use {{{color:#403294}{{max_concurrent_tasks}}{color}}} as the size of
script-engine pool for the processor and always use engines from this pool,
wait otherwise.
was:
*Background:*
The ExecutePythonProcessor is expected to have a limit on the maximal number of
concurrent tasks it can run. This
{{{color:#403294}{{max_concurrent_tasks}}{color}}} number is currently handled
incorrectly, and the processor is able to run any number of tasks at the same
time, but only {{{color:#403294}{{max_concurrent_tasks}}{color}}} script-engine
is reused.
*Proposal*:
**We should use {{{color:#403294}{{max_concurrent_tasks}}{color}}} as the size
of script-engine pool for the processor and always use engines from this pool,
wait otherwise.
> Rework engine queue for ExecutePythonProcessor
> ----------------------------------------------
>
> Key: MINIFICPP-1222
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1222
> Project: Apache NiFi MiNiFi C++
> Issue Type: Improvement
> Reporter: Adam Hunyadi
> Assignee: Adam Hunyadi
> Priority: Minor
> Fix For: 1.0.0
>
>
> *Background:*
> The ExecutePythonProcessor is expected to have a limit on the maximal number
> of concurrent tasks it can run. This
> {{{color:#403294}{{max_concurrent_tasks}}{color}}} number is currently
> handled incorrectly, and the processor is able to run any number of tasks at
> the same time, but only {{{color:#403294}{{max_concurrent_tasks}}{color}}}
> script-engine is reused.
> *Proposal*:
> We should use {{{color:#403294}{{max_concurrent_tasks}}{color}}} as the size
> of script-engine pool for the processor and always use engines from this
> pool, wait otherwise.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)