waha
waha copied to clipboard
[Feature Request] - lock session when performing some actions
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:
- When
session.enginerestart (internally) - block all requests (wait until it got restarted) - When a session restarting using
/restartor similar endpoint - block it as well - When perform some API calls (like sending message) - shared lock the session with some timeout (so we can restart it as well)
- May be when we perform some actions against the session during it's initialization (
STARTING => WORKING) we could also postpone requests to it