question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Loader failing if there are more items in queue than concurrency limit

See original GitHub issue

With 3 spritesheets and concurrency set to 2, some of the tests are failing. Please see the following fork:

https://github.com/tarling/resource-loader

Run npm run test to run the slightly modified test

Will submit a PR if I can work out how to fix it

It seems quite similar to https://github.com/englercj/resource-loader/issues/7

Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tarlingcommented, Jan 19, 2017

Thanks for fixing this so quickly @englercj

0reactions
englercjcommented, Jan 19, 2017

Ok, so this happens because since the concurrency is saturated it can’t load the child resource that was added, as it is waiting for a concurrency slot to open. Since that child never loads, the parent never completes, and that slot never opens.

Maybe the solve here is to open the concurrency when it finishes loading and is running middleware.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why 'reservedConcurrency' isn't limiting the number of ...
I see, so the 'reservedConcurrency' does not control the number of lambdas running but will throw a ThrottlingException if an SQS event triggers ......
Read more >
Lambda Concurrency Limits and SQS Triggers Don't Mix Well ...
Specifically, if you set the concurrency limit too low, Lambda can throttle due to taking too many messages off a busy queue. The...
Read more >
Neptune Loader Command - AWS Documentation
Neptune supports queuing up as many as 64 loader jobs at a time. If an additional load request is submitted to the queue...
Read more >
3 Pitfalls of AWS Step Functions and How You Can Avoid Them
If a batch has more than 40 items in, it splits the data into 40 more batches and recursively calls itself to fan...
Read more >
Top 10 most common Java performance problems
The number of connections to your database controls how many concurrent queries can be executed against it. If there are too few connections...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found