Running WAHA on Google Cloud Run – Feasibility and Considerations #817
-
Is it possible to deploy WAHA on a server like Google Cloud Run, meaning that the server would only run when specific requests are made? For example, I want the server to activate only when I send a status message and remain inactive otherwise. Is this feasible, or does WAHA require continuous operation to process background tasks? For context, I am using GOWS. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
It doesn't, but you can do that. It'll take some time to synchronize the old data/keys/etc tho If you work with exactly one session - you can start it by defining
or
so you'll have container per session You can find some env variables here https://waha.devlike.pro/docs/how-to/config/#sessions so it depends on your setup, but GOWS starts few seconds, like 5-15, depends on history data it needs to sync (it's important to sync it, because of the "Double Ratchet Algorithm" algorithm WA uses - it generates per-messages key based on old messages Try testing it! |
Beta Was this translation helpful? Give feedback.
-
where did you host/save the session file ? last time I try the session validate not more than 3-4 hour then it required to relogin I use on volume and mount it |
Beta Was this translation helpful? Give feedback.
It doesn't, but you can do that. It'll take some time to synchronize the old data/keys/etc tho
If you work with exactly one session - you can start it by defining
or
so you'll have container per session
Or you can run the whole container, but it'll restart all sessions
You can find some env variables here https://waha.devlike.pro/docs/how-to/config/#sessions
so it depends on your setup, but GOWS starts few seconds, like 5-15, depends on history data it needs to sync (it's important to sync it, because of the "Double Ratche…