Open j7smith opened 12 months ago
A couple of questions:
If you can share those results here, we can investigate further.
In regards to question number 2, I contact the admin about the logging. As for the wait_to_complete it makes sense it does not help in this case. Thanks.
As for question number 1. It's a mixed bag scenario. There is a combination of existing parameters to update and new parameters. These are coming from another/existing parameter context.
It starting to make some sense now. I will try using the prepare_parameter and let you know the results
Thanks
Hi Chaffelson. I did some additional testing using the prepare_parameter API call but still ran into issues. So, I simplified the scenario down to a single case. Adding a new parameter to the Parameter Context. Here is the code:
parameter_context_to_update = nipyapi.parameters.get_parameter_context('BAZ1', identifier_type='name', greedy=False)
prepared_parameter = nipyapi.parameters.prepare_parameter(
'TEST_PARAMETER_NAME_1',
'TEST_PARAMETER_VALUE_1',
description='This is a test',
sensitive=False
)
nipyapi.parameters.upsert_parameter_to_context(parameter_context_to_update, prepared_parameter)
As before it seems to (partially) work as I do see the new parameter in the Parameter Context but I'm still getting the error message: Timed Out waiting for _update_complete to complete.
Hi. Any comments or updates on this issue?
Sorry, maintaining this library is a side project for the community and I can't always respond as quickly as I'd like.
It sounds like it is applying the Parameter to the Context, which is good. It also sounds like it's taking a long time for the Canvas to finish updating with the new Parameter and return.
Two things to look at:
Nipyapi version: 0.19.1 NiFi version: 1.16.0 NiFi-Registry version: Python version: 3.7 Operating System: Windows/Linux I am attempting to automate the update/modification of several Parameter Context parameters using the supplied NiPyAPI calls.
I setup a list of ParameterEntity (parameter) then do the following:
When I execute the code I get the following exception on the initial call of the loop: Timed Out waiting for _update_complete to complete
It seems to (partially) work as it does update the first parameter. I searched for alternatives and documentation but thus far haven't found anything.
At this point I'm blocked. Any suggestion or alternatives?
Note: I've also looked into using the
nipyapi.utils.wait_to_complete
api call but it made no difference.