-
Notifications
You must be signed in to change notification settings - Fork 115
Question and Answers
Gil Vernik edited this page Apr 17, 2019
·
6 revisions
Question: "Tasks failed with ‘error’: ‘Too many concurrent requests in flight (count: X, allowed: Y).’}"
PyWren generates too many concurrent requests and hit limitation of maximum concurrent requests.
- Try to reduce number of invocations generated by PyWren. For example increasing chunk size when reading from IBM COS will generate less invocations where each invocation process the requested chunk size. This might be tricky, as increasing chunk size, may also need to increase overall memory required for the invocation.
- Increase retry times and numnber of retries. Limitations of this approach is that you may hit maximal running time. This will also make entire flow slower, due to longer retries. Follow 'retry_sleeps' and 'retires' from here.