[ 
https://issues.apache.org/jira/browse/NIFI-12308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17782323#comment-17782323
 ] 

ASF subversion and git services commented on NIFI-12308:
--------------------------------------------------------

Commit 754baf0a37cb156cbab08ca7884a7ccfe12b7df1 in nifi's branch 
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=754baf0a37 ]

NIFI-12308: Create Python Environment in background thread instead of during 
Processor creation

This closes #7971

Signed-off-by: David Handermann <[email protected]>


> Create Python Processors' environment in background
> ---------------------------------------------------
>
>                 Key: NIFI-12308
>                 URL: https://issues.apache.org/jira/browse/NIFI-12308
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 2.0.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> When a Python processor is added to the canvas, we create a new Python 
> environment for it as part of the Processor creation. This typically takes on 
> the order of 4-5 seconds but can take a bit longer. Generally, this isn't a 
> huge concern. However, when adding a flow from registry or from a snapshot 
> .json file, it can result in very long delays. We should instead move the 
> environment creation to a background thread and make the Processor invalid 
> until it's finished, in much the same way that we do with 3rd party 
> dependency downloads.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to