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¶
- Open Scripts: Infra top tab,
0then>twice (Scripts), orctrl+p→Go to Infra › Scripts. Highlight the script under Shared. The status line ends with its state on platform, hereon platform: ready(a deploy locks the script). -
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. -
Run it:
ebrings the form back; set its values, thenR(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. -
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.