inclub
HOBBYOP
8 months ago
I'm using websockets and my application seems to deploy again out of nowhere, which causes tasks that had already been scheduled to be performed twice.
2 Replies
smolpaw
HOBBY
8 months ago
A service can redeploy for various reasons, your app crashed, bad host, network failures, etc.
You should be persisting the state of the tasks i.e. completed, in-progress, pending in some db or local storage with a volume and not in memory. that's just bad practice.
So your app knows which tasks has already been done and to not do it again.
8 months ago
Not a common occurence, unless there's a banner on top of your deployment card stating that it was a 'Railway initiated deployment'
Status changed to Solved chandrika • 8 months ago