R
Railway•15mo ago
Florin Pop

Restart deployment every 24 hours

Every so often the deployment starts to use up more and more RAM (see screenshot) and I'm forced to restart in order to get the project working again. Is there any way I can dynamically restart the deployment every 24 hours?
No description
15 Replies
Percy
Percy•15mo ago
Project ID: 083a4f6c-f7ee-4dd7-90d5-1b8d3c5805b5
Florin Pop
Florin PopOP•15mo ago
083a4f6c-f7ee-4dd7-90d5-1b8d3c5805b5
Brody
Brody•15mo ago
dynamically, you would have to roll your own solution that would poll the metrics and call the deployment restart mutation whenever a self defined threshold is reached. every 24 hours, easy, use this template https://railway.app/template/fwH-l3
Florin Pop
Florin PopOP•15mo ago
Not sure why the RAM spins up so much tho'. For more context: I'm running a project where we take screenshots using playwright. All is well until the RAM gets high so I'm forced to restart 🤔
Brody
Brody•15mo ago
sounds like a memory leak to me
Florin Pop
Florin PopOP•15mo ago
hmm... no idea how I can figure that out 😅
Brody
Brody•15mo ago
profiling
Floris
Floris•15mo ago
for node u have Node Clinic, Node Mem watch (assuming ur running this in node)
Brody
Brody•15mo ago
isn't playwrite for python
Floris
Floris•15mo ago
No description
Floris
Floris•15mo ago
i see its py too
Brody
Brody•15mo ago
cool
Floris
Floris•15mo ago
if youre on python then i would look at the library tracemalloc it helps trace mem blocks
Florin Pop
Florin PopOP•15mo ago
No, it’s on node
Floris
Floris•15mo ago
ah ok ^
Want results from more Discord servers?
Add your server