Dear tech team,
I setup a multichain network where the validated blocks received by my node can contain one hundred transaction or more.
Once the block is received, I need to complete a task linked to the transaction id. I added such directive in the config file:
walletnotify=/home/user_name/.multichain/mainnet/script.sh %s %c %n
Everything works fine but some time i get the following warning and err message in the log file:
2023-06-29 04:34:08 WARNING: request rejected because http work queue depth exceeded, it can be increased with the -rpcworkqueue= setting
2023-06-29 04:34:11 runCommand error: system(/home/user_name/.multichain/mainnet/script.sh 3c0ddd21781b0587f0616f7b051700057cbcf56773f18323522020bcf7c503f7 0 21015) returned 256
This is due to the high number of requests.
My idea is to solve by using a queue manager in order to feed the queue on wallet notify and then reading the buffer in sequential way.
What do you think? could you suggest a way out?