MMOframework
Why AI Playground Libraries Developers Agency
FR EN
Build a project live
Index

mmo-hub-run

1 symbol · generated 30 Nov 2026

element

mmo-hub-run

mmo-hub-run.jhs:1

One 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.

<mmo-hub-run url jobs run label targets tags changes batch noconfirm options></mmo-hub-run>
Extends
CustomShadowElement
It runs as a long job, followed below (`<mmo-job>`). A run that changes something runs as a dry run first: what it would do shows below; applying it then asks the sites' names typed again (admin.php's `--i-understand`). Its `?` opens what the run does (HubController's `project/runs/{run}/help.json`, mmo.admin's `RunHelp`): its principle, its diagram -- the run's own steps lit --, the same command line, admin.php's description of it.
<mmo-hub-run url="api/hub" jobs="api/jobs" run="ship" label="Ship" targets='["alcon","demo"]' changes></mmo-hub-run>

Index

urlHubController's api: .../api/hub
jobsmmo.core's JobController api: .../api/jobs
runthe run: tests, ship...
labelits button's text
targetsthe sites it may act on, as JSON (["alcon", "demo"]): none for a run of the project only
tagsthe sites by tag, as JSON ({"prod": ["alcon"]}): to pick them by tag
changespresent when it changes something: a dry run first, then confirmed
batchpresent 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
noconfirmpresent when applying it needs no names typed (what writes only here, or replaces nothing)
optionsits 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() asyncRead 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() asyncList the backup sets and the dumps of the site picked, to put one back: every site's latest set otherwise.
backupSets() asyncList 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() asyncList the dumps of the site picked, to restore one: its server's, newest first, then this machine's.
start(dryRun) asyncStart the run: a dry run, or the run applied once its dry run was read and the sites' names typed.
help() asyncShow 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

Attributes10

targets

mmo-hub-run.jhs

the sites it may act on, as JSON (["alcon", "demo"]): none for a run of the project only

targets

tags

mmo-hub-run.jhs

the sites by tag, as JSON ({"prod": ["alcon"]}): to pick them by tag

tags

changes

mmo-hub-run.jhs

present when it changes something: a dry run first, then confirmed

changes

batch

mmo-hub-run.jhs

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

batch

noconfirm

mmo-hub-run.jhs

present when applying it needs no names typed (what writes only here, or replaces nothing)

noconfirm

options

mmo-hub-run.jhs

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} (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

Methods13

concurrency()

asyncmmo-hub-run.jhs:209

Read 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.

async concurrency()
returnsPromise<void>

showSites(targets)

mmo-hub-run.jhs:233

Show where each site of the batch stands

showSites(targets)
targetsObject<string, string>- site => waiting, running, done, failed, skipped, stopped

sets()

asyncmmo-hub-run.jhs:293

List the backup sets and the dumps of the site picked, to put one back: every site's latest set otherwise.

async sets()
returnsPromise<void>

backupSets()

asyncmmo-hub-run.jhs:326

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 the only place asked -- or one to download.

async backupSets()
returnsPromise<void>

dumps()

asyncmmo-hub-run.jhs:377

List the dumps of the site picked, to restore one: its server's, newest first, then this machine's.

async dumps()
returnsPromise<void>

start(dryRun)

asyncmmo-hub-run.jhs:405

Start the run: a dry run, or the run applied once its dry run was read and the sites' names typed.

async start(dryRun)
dryRunboolean
returnsPromise<void>

help()

asyncmmo-hub-run.jhs:458

Show what the run does, read once from the hub: its diagram is mmo.admin's SVG, drawn by the hub itself

async help()
returnsPromise<void>

T(text, values)

staticmmo-hub-run.jhs:492
static T(text, values)
textstring- english, {name} where a value goes
valuesObject- name => value
returnsstringthe text translated, its values in it (MMO.i18n.$ translates, and takes no values: its second argument is a language)