diff --git a/doc/man/man1/sacct.1 b/doc/man/man1/sacct.1 index 41605ca6e60e99b8bec122c092334ae98f2f1774..e4dcebfe89b3687eb1ed86d4d6df6fcc26864690 100644 --- a/doc/man/man1/sacct.1 +++ b/doc/man/man1/sacct.1 @@ -116,6 +116,10 @@ When data for specific jobs are requested with the \-\-jobs option, behavior can be overridden by specifying \-\-duplicates, in which case all records that match the selection criteria will be returned. +.IP +NOTE: Revoked federated sibling jobs are hidden unless the \-\-duplicates option +is specified. + .TP \f3\-e\fP\f3,\fP \f3\-\-helpformat\fP .IP diff --git a/src/plugins/accounting_storage/mysql/as_mysql_jobacct_process.c b/src/plugins/accounting_storage/mysql/as_mysql_jobacct_process.c index d27dd2cf64e6ba240f77be1dcdc6720024f565c8..88f2dd368eb307b5b8f730ad794326a46a58b406 100644 --- a/src/plugins/accounting_storage/mysql/as_mysql_jobacct_process.c +++ b/src/plugins/accounting_storage/mysql/as_mysql_jobacct_process.c @@ -1248,6 +1248,12 @@ no_resv: xstrcat(*extra, ")"); } + /* Don't show revoked sibling federated jobs w/out -D */ + if (!job_cond->duplicates) + xstrfmtcat(*extra, " %s (state != %d)", + *extra ? "&&" : "where", + JOB_REVOKED); + return SLURM_SUCCESS; }