mmo-hub-run
1 symbole · générée le 30 Nov 2026
mmo-hub-run
mmo-hub-run.jhs:1One of the runs a hub may run on its project (mmo.admin's MMO\admin\monitoring\ProjectRuns): its tests, a deployment of some sites, a pull... The page names the run and its targets; the commands are written in mmo.admin.
- Étend
CustomShadowElement
Index
| url | HubController's api: .../api/hub | |
| jobs | mmo.core's JobController api: .../api/jobs | |
| run | the run: tests, ship... | |
| label | its button's text | |
| targets | the sites it may act on, as JSON (["alcon", "demo"]): none for a run of the project only | |
| tags | the sites by tag, as JSON ({"prod": ["alcon"]}): to pick them by tag | |
| changes | present when it changes something: a dry run first, then confirmed | |
| batch | present when the run is a batch (each site its own process, several at once, each one's state shown): how many at once is asked, its default read from project/concurrency.json | |
| noconfirm | present when applying it needs no names typed (what writes only here, or replaces nothing) | |
| options | its other choices, as JSON: {"to": true} (rollback's release), {"fetch": true} (backup's download), {"restoreLocally": true} (backup's: the dump into this machine's database), `{"dumps": true… | |
| init() | ||
| pick(names) | Pick these sites, and only these | |
| concurrency() async | Read how many sites a batch of the sites picked runs at once by default: what their servers can take, from their last readings. | |
| showSites(targets) | Show where each site of the batch stands | |
| picked() | ||
| body() | ||
| sets() async | List the backup sets and the dumps of the site picked, to put one back: every site's latest set otherwise. | |
| backupSets() async | List the backup sets of the site picked, as last read (project/backups.json, no server reached): to tick those to delete -- each place's newest complete set kept, so not offered where it would be… | |
| dumps() async | List the dumps of the site picked, to restore one: its server's, newest first, then this machine's. | |
| start(dryRun) async | Start the run: a dry run, or the run applied once its dry run was read and the sites' names typed. | |
| help() async | Show what the run does, read once from the hub: its diagram is mmo.admin's SVG, drawn by the hub itself | |
| T(text, values) static | ||
| ask() | Ask for the sites' names, to apply what the dry run showed |
Attributs10
url
mmo-hub-run.jhsHubController's api: .../api/hub
url
jobs
mmo-hub-run.jhsmmo.core's JobController api: .../api/jobs
jobs
run
mmo-hub-run.jhsthe run: tests, ship...
run
label
mmo-hub-run.jhsits button's text
label
targets
mmo-hub-run.jhsthe sites it may act on, as JSON (["alcon", "demo"]): none for a run of the project only
targets
tags
mmo-hub-run.jhsthe sites by tag, as JSON ({"prod": ["alcon"]}): to pick them by tag
tags
changes
mmo-hub-run.jhspresent when it changes something: a dry run first, then confirmed
changes
batch
mmo-hub-run.jhspresent when the run is a batch (each site its own process, several at once, each one's state shown): how many at once is asked, its default read from project/concurrency.json
batch
noconfirm
mmo-hub-run.jhspresent when applying it needs no names typed (what writes only here, or replaces nothing)
noconfirm
options
mmo-hub-run.jhsits other choices, as JSON: {"to": true} (rollback's release), {"fetch": true} (backup's download), {"restoreLocally": true} (backup's: the dump into this machine's database), {"dumps": true} (restore's dump, listed from the site picked: HubController's project/dumps.json), {"exec": true} (cmd's command), {"part": true} (version's patch, minor or major), {"count": true} (history's entries), {"packages": ["oviepro", "mmo.core"]} (pull/push), {"prefer": "optional"} or "required" (a data run: the side that wins what both changed differently), {"withFiles": true} (a data run: the heavy files too), {"parts": true} (backup, restore: databases, files, config to tick), {"sets": true} (restore: each site's latest set, or -- one site picked -- one of its sets or one of its dumps, listed from project/dumps.json), {"backupSets": true} (backup-delete: the sets of the site picked to tick, as last read -- project/backups.json --, each place's newest complete set never), {"fetchSet": true} (backup-fetch: each site's newest complete set, or one of the site picked), {"where": true} (backup-delete, backup-prune: on the servers, here, or both), {"keep": 7} (backup-prune: how many sets stay)
options
Méthodes13
init()
mmo-hub-run.jhs:63pick(names)
mmo-hub-run.jhs:198Pick these sites, and only these
| names | string[] |
concurrency()
asyncmmo-hub-run.jhs:209Read how many sites a batch of the sites picked runs at once by default: what their servers can take, from their last readings. It is the field's placeholder: what runs when it is left empty.
| retourne | Promise<void> |
showSites(targets)
mmo-hub-run.jhs:233Show where each site of the batch stands
| targets | Object<string, string> | - site => waiting, running, done, failed, skipped, stopped |
picked()
mmo-hub-run.jhs:242| retourne | string[] | the sites picked |
body()
mmo-hub-run.jhs:248| retourne | Object | the run's body, but dryRun and confirm |
sets()
asyncmmo-hub-run.jhs:293List the backup sets and the dumps of the site picked, to put one back: every site's latest set otherwise.
| retourne | Promise<void> |
backupSets()
asyncmmo-hub-run.jhs:326List the backup sets of the site picked, as last read (project/backups.json, no server reached): to tick those to delete -- each place's newest complete set kept, so not offered where it would be the only place asked -- or one to download.
| retourne | Promise<void> |
dumps()
asyncmmo-hub-run.jhs:377List the dumps of the site picked, to restore one: its server's, newest first, then this machine's.
| retourne | Promise<void> |
start(dryRun)
asyncmmo-hub-run.jhs:405Start the run: a dry run, or the run applied once its dry run was read and the sites' names typed.
| dryRun | boolean | |
| retourne | Promise<void> |
help()
asyncmmo-hub-run.jhs:458Show what the run does, read once from the hub: its diagram is mmo.admin's SVG, drawn by the hub itself
| retourne | Promise<void> |
T(text, values)
staticmmo-hub-run.jhs:492| text | string | - english, {name} where a value goes |
| values | Object | - name => value |
| retourne | string | the text translated, its values in it (MMO.i18n.$ translates, and takes no values: its second argument is a language) |
ask()
mmo-hub-run.jhs:497Ask for the sites' names, to apply what the dry run showed