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

David Handermann commented on NIFI-13745:
-----------------------------------------

Thanks for the summary and updates [~pgyori].

The exception handling is worth considering. In the Java implementation, a 
state manager implementation may fail to write the state map, and the calling 
Processor may or may decide to fail the entire process. This seems like an 
important aspect of implementation for the Python API.

>From a package name point of view, just using `state` seems like an option 
>instead of `componentstate`.

The StateMap version is also important from a comparison point of view, as 
different component instances may attempt optimistic updates based on the 
retrieved version.

> Extend the NiFi Python API with access to StateManager
> ------------------------------------------------------
>
>                 Key: NIFI-13745
>                 URL: https://issues.apache.org/jira/browse/NIFI-13745
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework, Extensions
>            Reporter: Peter Gyori
>            Assignee: Peter Gyori
>            Priority: Major
>
> There are use-cases where it is necessary to store state from Python-based 
> processors in NiFi. One such case is creating and using a List* type Python 
> processor that needs to store information regarding which items have already 
> been listed in previous executions. For that we need to expose the 
> StateManager functionality through the Python API.



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

Reply via email to