[Feature Request] - Do not restart STOPPED sessions when WHATSAPP_RESTART_ALL_SESSIONS=True (keep track of session status)
After stopping sessions, it will automatically change to SCAN_QR_CODE after a period of time. Can it remain stopped?
@HuangDaHui hi! Could it because of the container restart AND WHATSAPP_RESTART_ALL_SESSIONS=True flag enabled?
https://waha.devlike.pro/docs/how-to/config/#sessions
Because it does restarts all sessions, including STOPPED one.
If it happens even without container restart - this is a bug, please let us know if it's the case!
it does restarts all sessions, including STOPPED one.
We could track session status and run only working or failed one tho :thinking:
Before making it possible we need to handle workers approach as well, so if one shares a single store across multiple workers we restart the session only on the previous worker
WHATSAPP_RESTART_ALL_SESSIONS=True
Yes, I set this variable to true, WHATSAPP_RESTART_ALL_SESSIONS=True I now think false would be better, thanks for your answer
I now think false would be better
But it WILL NOT start sessions at all after the container restart. WAHA doesn't start even WORKING one by default, all sessions will be STOPPED
So when it happens during the night you need to either make it manually or write a script.
Let's keep the issue open, I think we could handle it on the project side, keeping the status and not restarting STOPPED one looks like the best solution
Yes, I agree, looking forward to your updates
2024.10.5 If you remove now WHATSAPP_RESTART_ALL_SESSIONS=True - WAHA remembers the session status and restore it on restart (meaning it will not re-run STOPPED sessions)