Hello, I created a custom mnesia queue that do some specific things to my use case.
The issue is that my queue is slower than the built-in mnesia queue, so sometimes it takes more than 5 seconds to queue a new job, making GenServer.call(queue_process, {:enqueue, job}) timeout and crash.
The obvious solution to that is to bump the timeout value, but there is no way to configure that inside Honeydew.
I tried creating a fork and seeing if there is an easy way to pass the timeout value to all Genserver calls, but it doesn't seem to be an easy way to do that since these functions can be called in so many places.
For me, an easy fix would be to simply change the default of all the calls to use :infinity as timeout since it is pretty safe and only creates a problem if you have a deadlock, but I'm not sure if that is ok for you.
Do you have any suggestion?
Hello, I created a custom mnesia queue that do some specific things to my use case.
The issue is that my queue is slower than the built-in mnesia queue, so sometimes it takes more than 5 seconds to queue a new job, making
GenServer.call(queue_process, {:enqueue, job})timeout and crash.The obvious solution to that is to bump the timeout value, but there is no way to configure that inside Honeydew.
I tried creating a fork and seeing if there is an easy way to pass the timeout value to all
Genservercalls, but it doesn't seem to be an easy way to do that since these functions can be called in so many places.For me, an easy fix would be to simply change the default of all the calls to use
:infinityas timeout since it is pretty safe and only creates a problem if you have a deadlock, but I'm not sure if that is ok for you.Do you have any suggestion?