Merge pull request #61657 from nextcloud/chore/bg_jobs_help

chore(jobs): write proper documentation for job:history
pull/61947/head
Benjamin Gaussorgues 1 month ago committed by GitHub
commit 1dcf94ea22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      core/Command/Background/JobsHistory.php
  2. 2
      core/Command/Background/RunningJobs.php

@ -33,10 +33,11 @@ final class JobsHistory extends Base {
parent::configure();
$help = <<<EOF
Display all currently running background jobs.
List historical job executions
You can find the following informations:
The output includes:
- <info>Run ID:</info> job identifier as found in database (Snowflake ID)
- <info>Status:</info> result of the job (Succeeded, Failed, Crashed)
- <info>Class:</info> class of the job
- <info>Started at:</info> start time of the job
- <info>Server ID:</info> server ID as defined in <options=bold>config.php</> (see `serverid`). Highlighted if it’s running on current server.
@ -48,7 +49,7 @@ final class JobsHistory extends Base {
$this
->setName('background-job:history')
->setDescription('Show currently running jobs')
->setDescription('List historical job executions')
->setHelp($help)
->addOption('limit', 'l', InputOption::VALUE_REQUIRED, 'Maximum number of results returned by the command', 200)
->addOption('class', 'c', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Filter by class name', [])

@ -32,7 +32,7 @@ final class RunningJobs extends Base {
$help = <<<EOF
Display all currently running background jobs.
You can find the following informations:
The output includes:
- <info>Run ID:</info> job identifier a found in database (Snowflake ID)
- <info>Class:</info> class of the job
- <info>Started at:</info> start time of the job

Loading…
Cancel
Save