waha icon indicating copy to clipboard operation
waha copied to clipboard

[Feature Request] - lock session when performing some actions

Open devlikepro opened this issue 1 year ago • 0 comments

Right now when a session goes in "restart" loop (due to network issues or 30 minute timeout for NOWEB) - all requests to the session fail. We need to take care of this internally:

  1. When session.engine restart (internally) - block all requests (wait until it got restarted)
  2. When a session restarting using /restart or similar endpoint - block it as well
  3. When perform some API calls (like sending message) - shared lock the session with some timeout (so we can restart it as well)
  4. May be when we perform some actions against the session during it's initialization (STARTING => WORKING) we could also postpone requests to it

patron:PRO

devlikepro avatar Sep 09 '24 07:09 devlikepro