Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Nov 5, 2022 · 2 comments

Comments

@EfraimGENC
Copy link

  • Nipyapi version: 0.19.1
  • NiFi version: 1.17.0
  • NiFi-Registry version:
  • Python version: 3.10.7
  • Operating System: MacOS (Slicon)

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
Copy link
Owner

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants