You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ChainWorkers cache should usually contain at least a few idle workers. However, it should still operate normally under heavy load (as in, many new attempts for chain workers that aren't already in the cache). There should be tests to reproduce this scenario.
Proposal
Write unit tests that simulate many requests for a number of chain workers larger than the cache size. A simulated ChainWorkerRequest::PretendToBeBusy can be added for testing purposes. The variant can include a field to specify the Duration of the request, and there could be tests for long delays and short delays.
The text was updated successfully, but these errors were encountered:
Motivation
The
ChainWorkers
cache should usually contain at least a few idle workers. However, it should still operate normally under heavy load (as in, many new attempts for chain workers that aren't already in the cache). There should be tests to reproduce this scenario.Proposal
Write unit tests that simulate many requests for a number of chain workers larger than the cache size. A simulated
ChainWorkerRequest::PretendToBeBusy
can be added for testing purposes. The variant can include a field to specify theDuration
of the request, and there could be tests for long delays and short delays.The text was updated successfully, but these errors were encountered: