Closed 0x501D closed 10 months ago
On the other hand, you can close this pr and issue. Since this is not a bug, but a special case when the user, without checking the current state of the queue with the public state()
method, calls the public method, and the queue at that moment is in the INIT
state. In this case, the user script will abort with an ambiguous error.
In replicaset mode, the user can attempt to call public methods on the replica start. For example, a single script is used for master and replica.
This patch allows you to call a public method in the INIT state without interrupting the script by exiting with an obscure error. It will only log an attempt to call a method from the check_state function, which is present at the beginning of each public method.
Closes #216