-
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 invocations and hit limitation of maximum concurrent invocations.
- 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. Increasing chunk size will also make an invocation to process more data which will increase running time.
- Increase retry times and numnber of retries. Limitation of this approach is that you may hit maximal running time. This will also might make entire flow slower, due to longer retry times. Follow 'retry_sleeps' and 'retires' from here.