Config as Code fields null
How do i set a field like
restartPolicyMaxRetries
to null
?32 Replies
Project ID:
N/A
using
"null"
as the value errors, as well as just plain null
Im curious what the original intention was supposed to be
also whats the default value?
10, disabling retrying is a different field
once
restartPolicyType
is set to NEVER
you just omit the restartPolicyMaxRetries
fieldwheres that documented, or is it not?
how would u make it lways restart on crash?
every service you have ever created would have shown the default as 10 🤣
set
restartPolicyType
to ALWAYS
pro tip, use a railway.json file with the schema shown above and edit it on an ide that supports validating the document against that schema (vscode)but toml looks nicer 😢
i mean 99% of your questions could have been answered with the autocomplete vscode gives you on a json document with a schema
what 99% of my questions
default value wasnt answered
null
wasnt answered10
null is a json thing lol
the json schema for railway.json allows for null
how come the examples deal with toml then
also ^
already answered
the author liked toml, just like you 🤣
i tought:
ON_FAILURE
- restart when the service exits with a non-zero exit code, up to restartPolicyMaxRetries
times
ALWAYS
- restart when the service exits with any exit code, up to restartPolicyMaxRetries
times
NEVER
- dont restart
but r u saying that
ALWAYS
- restart when the service exits with a non-zero exit code, always
?given the fact that the input box disappears when you select always, leads me to believe that its the last option you gave
but now that im thinking about it, infinitely restating a service on crash would be kinda pointless
i just want concise and precise docs ðŸ˜
can i ask you a question and not have it sounds rude?
yes?
genuine question, genuinely curious.
you have been in this server for a long time, and have also been using railway for a very long time, so why are you always asking questions like you just started using the platform last week
over text this sounds rude, but i promise you i dont mean any ill intent
i rarely look at railway docs bc railway is so good that i dont need to make changes to my config, but when i do, i want to be very sure it does what i want it to do
here, these config as code changes are something im not familiar bc i last touched them like a year ago
i see, thank you
i also have high expectations of railway in terms of service, docs, and reliability
oh are you on pro?
no
oh
i just mean that i dont expect railway to have major issues or problems with functionality
most of their problems are with the builder it seems, i have never had a running service go down where railway was at fault
same here, and i continue to expect that from railway
well tbh they dont have an SLA so you cant really expect it
true