/cmr/upgrade/job

当前显示英文原文,切换到「中文」可查看译文。

job

One upgrade job is one upgrade run. Jobs are created from upgrade rules, and their parameters are copied from the rule at creation and are read-only. A scheduled job resolves its device list only when it starts, so...


cmr/upgrade/job

Package: cmr Type: Directory

One upgrade job is one upgrade run. Jobs are created from upgrade rules, and their parameters are copied from the rule at creation and are read-only. A scheduled job resolves its device list only when it starts, so show-devices for a scheduled job can be empty. Remove a queued or processing job to cancel it. The job state becomes cancelled.

FlagNameDescription
XdisabledJob is disabled.
RruleJob created from an upgrade rule.
Read-only ArgumentTypeDescription
labelsobjectDevices the job covers, selected by labels. Empty for a job that /cmr/device/upgrade started for devices selected by number.
orderobjectExecution order of the label groups, used with continue-order.
channelaltUpgrade channel or the pinned version the job installs. Empty when each device upgrades on its own upgrade channel.
strategyenum ()How the job upgrades devices: parallel all at the same time, sequential one after another. With continue-order the devices are processed per label group in the order given by order.
fail-policyenum ()Behaviour of the job if a device fails: continue, stop, or continue-order. stop halts the whole job on the first failure; continue-order continues with the next label group in order.
schedule-timedateWhen the job is scheduled to run, in the same format as the rule's schedule-time.
starts-intimeTime remaining until the job starts. Shown for scheduled jobs.
start-timedateWhen the job started running.
end-timedateWhen the job finished.
stateenum (scheduled | queued | waiting devices | queued (busy) | version check | processing | done | cancelled)Current job state: scheduled (waiting to run), queued (created while another job runs, starts when it finishes), waiting devices, version check (looking up the available version), processing (upgrading), done (finished), or cancelled (removed).
successcomposite { success: num , total: num }Upgraded/total, for example 3/10. A 0/total occurs when the devices are already on the target version or a covered device is unreachable when the job starts.
run-timetimeHow long the job took to run.
packagesmulti { package: string }Packages the job upgrades.