Chaffelson / nipyapi

A convenient Python wrapper for Apache NiFi
Other
243 stars 76 forks source link

Couldn't get list of all pgs: ValueError: Invalid value for `flowfile_concurrency` (SINGLE_BATCH_PER_NODE), must be one of ['UNBOUNDED', 'SINGLE_FLOWFILE_PER_NODE'] #321

Open EfraimGENC opened 1 year ago

EfraimGENC commented 1 year ago

Description

I'm trying to fetch all child process groups with nipyapi.canvas.list_all_process_groups.

What I Did

My code is like:

project = nipyapi.canvas.list_all_process_groups('80674280-2da1-1f5f-5a7f-5f6cba651cea')
all_pgs_in_project = [p.to_dict() for p in project]

The error that I got:

ValueError: Invalid value for `flowfile_concurrency` (SINGLE_BATCH_PER_NODE), must be one of ['UNBOUNDED', 'SINGLE_FLOWFILE_PER_NODE']

Urgency

I want to select some of the processor groups according to their names and some according to the variables they have, and add new variables to those processor groups.

Chaffelson commented 1 year ago

Checked on this and it is an error in the swagger spec for NiFi which NiPyAPI relies it - it's now fixed upstream, so we'll have to make a version with the fix. Jira for the fix is here

EfraimGENC commented 1 year ago

That's great to hear. Moreover, it is extraordinary that it is solved at this speed. I'm looking forward to the new version. Thank you very much for your interest.

Checked on this and it is an error in the swagger spec for NiFi which NiPyAPI relies it - it's now fixed upstream, so we'll have to make a version with the fix. Jira for the fix is here