Chris L.
12/02/2021, 11:01 AMClientError
when using Prefect Cloud for a mapped tasks. The inputs to each task are identical, but some mapped tasks are successful while a few raise DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead
(see screenshot for trace). Has anybody experienced something similar? I'm using urllib3 v1.26.7 and prefect
v0.15.9Anna Geller
Chris L.
12/02/2021, 11:15 AMAnna Geller
Chris L.
12/02/2021, 11:55 AMAnna Geller
set_task_run_states
handles concurrency logic.
But it doesn’t explain the urllib error for sure.
Did the reregistering via CI workflow fix it? It actually could fix the issueChris L.
12/02/2021, 12:12 PMChris L.
12/02/2021, 12:16 PMChris L.
12/02/2021, 12:33 PMAnna Geller
method_whitelist
was deprecated and removed from urllib3==1.26.0
onwards, as stated in the release changelog. The solution in my case was to set the urllib
version to a previous one, adding urllib3==1.25.11
to my requirements.txt
”Anna Geller
Chris L.
12/02/2021, 12:45 PMChris L.
12/02/2021, 12:47 PMChris L.
12/03/2021, 3:57 AMChris L.
12/03/2021, 8:11 AMprefect flow run --execute
agentless flow run and I am getting the same "method whitelist" error as above. I ran this immediately after registering the flow directly from my laptop inside the same conda environment as the local flow run execution environment. I'm wondering if there is something on the Prefect Cloud side that might be causing this error?Chris L.
12/03/2021, 9:22 AMn_bootstraps
.
I just tested a few values of n_bootstraps
. The method_whitelist
error only occurs when I use Prefect Cloud with n_bootstraps
<= 3. This is super weird because I've used Prefect mapped tasks with over 5000 mapped tasks before with no issue...Anna Geller