Not sure why this isn't a config option already?
It probably should be.
I think it'd be fine to have "hard" limits in the code, and allow server operators to adjust "soft" limits within hard limits. For example:
/* These may not belong here - having this logic in the config may make more sense */
constexpr int minJQTxCount = 100;
constexpr int maxJQTxCount = 1000;
auto int limit = std::clamp(/* value from config */, minJQTxCount, maxJQTxCount);
if (app_.getJobQueue().getJobCount(jtTRANSACTION) > limit)
I would like to work on this issue if no one else is actively working on it.
@Ghorbanian go ahead! Thanks for volunteering!
I would like to work on this issue if no one else is actively working on it.
Cool! Easy fix ... should be easy to get a PR accepted. Clamp on new config value as nik suggested.
I believe this has already been handled by @natenichols in #3562.