R
Railway•10mo 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•10mo ago
Project ID: 083a4f6c-f7ee-4dd7-90d5-1b8d3c5805b5
Florin Pop
Florin Pop•10mo ago
083a4f6c-f7ee-4dd7-90d5-1b8d3c5805b5
Brody
Brody•10mo 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 Pop•10mo 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•10mo ago
sounds like a memory leak to me
Florin Pop
Florin Pop•10mo ago
hmm... no idea how I can figure that out 😅
Brody
Brody•10mo ago
profiling
Floris
Floris•10mo ago
for node u have Node Clinic, Node Mem watch (assuming ur running this in node)
Brody
Brody•10mo ago
isn't playwrite for python
Floris
Floris•10mo ago
No description
Floris
Floris•10mo ago
i see its py too
Brody
Brody•10mo ago
cool
Floris
Floris•10mo ago
if youre on python then i would look at the library tracemalloc it helps trace mem blocks
Florin Pop
Florin Pop•10mo ago
No, it’s on node
Floris
Floris•10mo ago
ah ok ^