```Hey everyone, I have an issue. We're getting th...
# prefect-server
w
Copy code
Hey everyone, I have an issue. We're getting this error: "Unexpected error: ClientError(\'An error occurred (ThrottlingException) when calling the DescribeTasks operation (reached max retries: 4): Rate exceeded\')"
I tried to bump the version of dask to 2021.9.1 and it is giving me back this error:
Copy code
ImportError: cannot import name 'apply' from 'dask.compatibility' (/usr/local/lib/python3.9/site-packages/dask/compatibility.py)
I have no idea how to handle this
k
Hey @William Burdett, looks like you have a mapped task and AWS is throttling those API calls. On Cloud we have task concurrency limiting for situations like this so that APIs aren’t called too much. I don’t think bumping the dask version would help? Though I’m not sure that is going on with that error.
w
This error is showing up in the cloud actually
k
Task concurrency is not there by default. You have to tag the tasks and then specify the limit for that task tag, and then the submission of those mapped tasks will be limited.
This is the doc for that if it helps
Something seems off with the Dask installation. Did you use conda install?
w
We use pip
k
This is not quite your issue, but maybe upgrading
distributed
might help also?
w
So, I added a concurrency limit. Is 20 too high?
k
I honestly wouldn’t know the AWS limits for that operation. Let me try looking
w
A lot of our mapping is firing a ton of queries at a snowflake warehouse. So it can handle quite a bit at once
k
Oh sorry are you using ECS? or is this from creating a Fargate cluster?
w
Fargate
k
Am going through this issue
I guess the only potential thing to do is to use the adapt kwargs to scale? But it will be slower.
w
Okay, thank you. I'll reduce that and see where it gets us