BillyDotWS
if I use the prepaid subscription, do I still need to pay $5/month? or it always active until it run
Go to your account and set a 4.99 resource limit:
https://i.imgur.com/Hv5wplS.png
21 replies
Redeploy call
automatically re-deploying your container would be a bigger dev task than putting in a hotfix, no?
If you genuinely think not.
Add some error catching/a filter onto your service - whenever it fires the specific error, send an api request to railway to re-deploy and pass the error to the requester.
It still doesn't solve the issue - people will get the error for a little while. It's a pretty bad solution.
6 replies
Workers and auto-deploy
to disconnect auto deploy from github: https://i.imgur.com/MmTp1jg.png
12 replies
Workers and auto-deploy
--
Is there a way "trigger" a job? Ex, I have a task that I only need to run once in a while so currently I'm just remove the instance and re-deployingWhat's the requirement? Is this happening, for example every sunday, or at a specific day/time? or are you looking for more sporadic/on demand? If predictable - use cron jobs If on demand - you'd integrate with the API [https://docs.railway.app/reference/public-api] and have whatever needs to run the task call it
12 replies
Workers and auto-deploy
If so: Unlink the github repository and setup a github action instead:
https://github.com/bervProject/railway-deploy (externally supported, not railway official).
Then make it only trigger on a specific branch/if specific conditions are met
Example: send something (e.g. api request) to your worker controller to pause new consumption, then poll in the github action until the controller says the deployment is safe (no jobs running)
Once it deploys, another action, un-pauses the controller (which allows it to consume the remaining jobs).
Look at the GA docs, that'd be the best idea if you're wanting non-default/special behaviour.
12 replies