Skip to content

Run a deployed script on platform

Goal: run a shared script that an admin deployed as a script worker, from the TUI, and follow its run. The run goes on in its worker when you quit the TUI.

Prerequisites

  • An active context (Switch context).
  • A shared Python script deployed by an admin in the web app (Deploy a script as a worker). The TUI does not deploy: a script that is not deployed says admins deploy it in the web app.

Steps

  1. Open Scripts: Infra top tab, 0 then > twice (Scripts), or ctrl+p → Go to Infra › Scripts. Highlight the script under Shared. The status line ends with its state on platform, here on platform: ready (a deploy locks the script).
  2. Show its runs: v. The runs view takes the place of the form: the deployment (how it starts, the approved writes, who approved which code) and its newest runs.

    A deployed health check's runs view

  3. Run it: e brings the form back; set its values, then R (Run on platform). On a protected context the TUI asks first (run script HEALTH_CHECK on platform?). The run is listed at the top, its output shows below as it is printed, and its outcome at the end.

    The run on platform, done, with its output

  4. Cancel a run that goes on too long: X.

What runs: the script as stored, never your unsaved edits (R refuses them; r runs the editor's code here). A runner that is busy (overlap skip) answers so, and a script changed since its approval shows approval-needed until an admin redeploys it.

After you quit: the run goes on in its worker. Open the script again: the run is in the list with its outcome and output.

See Scripts › Script workers.