CorefinityCorefinityDocs
Open the Control PanelControl Panel
PHP and runtime · 7 of 22

corestack_runtime_adopt

Turn on instant changes.

Scope writeRuns as a taskNo secrets returned
On this page

When to use it

Move a row onto the new runtime, so later PHP, nginx and Node.js changes apply straight away: now or tonight in its maintenance window. corestack_runtime_get's adoption says whether it is offered and why not.

Ask for it

Prompt
Using the Corefinity MCP server, call corestack_runtime_adopt with site_id 4211, apply tonight. (Turn on instant changes.) Tell me what it returned.

Inputs

applystring

now (the default), or tonight in the row's maintenance window. window: the row's next maintenance window (tonight is kept as its alias). Defaults to now.

nowwindowtonight
site_idintegerRequired

The row: the site or one of its environments. At least 1.

Example call

tools/call
{
  "name": "corestack_runtime_adopt",
  "arguments": {
    "site_id": 4211,
    "apply": "tonight"
  }
}

If it is refused

ReasonWhat to do
already_adoptedThe row is already on the new runtime; there is nothing to do.
busyThe row is adopting already; follow it with corestack_runtime_get.
runtime_not_adoptedAdoption is not open for this row yet (details.adoption says why); try again later.
feature_offapply: "tonight" needs the maintenance window queue, which is switched off; leave apply out to make the change now.
batch_windowThis row can only adopt inside its maintenance window, or other maintenance is already queued for it; call again with apply: "tonight".
change_pendingAnother change is queued for this row's window; apply or cancel it first (corestack_pending_changes_list).
migration_haltedTonight's maintenance is halted, so nothing was changed; try again once Corefinity resumes it.
canary_pendingThe new runtime is still at its canary stage and open to canary rows only; try again once it opens to every row.
apm_provenance_unreadableThe row's New Relic set-up could not be read, so nothing was changed. Contact support.
image_volume_unsupportedPart of the row's cluster cannot run the new runtime yet; Corefinity upgrades it; try again after.
legacy_module_unmappedThe row loads a PHP module the new runtime does not offer yet; Corefinity reviews it and nothing was changed.
not_availableThis row cannot move onto the new runtime (details.adoption says why).
removedThe row has been removed.
managed_elsewhereAnother control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done.
temporarily_unavailableThe runtime image round this adoption needs is not one Corefinity offers right now (withdrawn, or not published yet). Nothing was changed; send it again once Corefinity offers that round.
invalid_argumentsThe arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again.
tenant_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it.
rate_limitedToo many calls. Wait for the number of seconds the answer names.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT