Skip to content
Read-only checks for function source update deployment behavior
Anonymous
OP

a month ago

For the connected Railway update_function_source_code tool, does staged=false always trigger a new deployment?

If a response reports changed=true and staged=null without a deployment ID, what read-only checks distinguish code saved, deployment queued, and deployment failed? Is codeSource=deployed sufficient evidence of a new execution, or should a new deployment ID be required?

This is a general tool-behavior question, not a request to inspect or change a specific service. Please suggest non-mutating checks only.

Solved

1 Reply

Railway
BOT

a month ago

We can't confirm from the tool's response shape alone that staged=false always produces a new deployment, so the safest evidence of a new execution is a new deployment for that service that is newer than your change, with its own status. A changed=true response with no deployment ID tells you the source was updated, not that anything ran, and we wouldn't treat codeSource=deployed by itself as proof of a new execution.

To rule out "saved but not applied" without mutating anything, you can read the environment's staged changes with the public environmentStagedChanges query, requesting the patch field without decryptVariables (it only needs viewer access). Staged edits do nothing until they're applied and stay staged indefinitely, so a non-empty patch there means the change is waiting to be deployed, while an empty patch means nothing is pending. Note that a staged record existing with status: STAGED is normal; the change count inside the patch contents is what matters.

If nothing is staged, the remaining distinction between queued, failed and running comes from the newest deployment's status and its logs in the dashboard, compared against the deployment that was live before your change.


Status changed to Awaiting User Response Railway • about 1 month ago


Railway
BOT

21 days ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway • 21 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...