From 915876c530b7a4b7db1e7eab9e55263804738f95 Mon Sep 17 00:00:00 2001 From: Joe White Date: Thu, 25 Mar 2021 10:45:12 -0400 Subject: [PATCH] Add walltime_accuracy metric to job summary data. This was requested by the OnDemand folks and will be used to display in their web interface. There is a corresponding change to the supremm realm too. This change does not result in any changes to the XDMoD user interface. --- classes/DataWarehouse/Query/Jobs/RawData.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/DataWarehouse/Query/Jobs/RawData.php b/classes/DataWarehouse/Query/Jobs/RawData.php index 518a6a74aa..da076942c1 100644 --- a/classes/DataWarehouse/Query/Jobs/RawData.php +++ b/classes/DataWarehouse/Query/Jobs/RawData.php @@ -84,6 +84,7 @@ public function __construct( $this->addField(new TableField($factTable, 'start_time_ts')); $this->addField(new TableField($factTable, 'end_time_ts')); $this->addField(new FormulaField('-1', 'cpu_user')); + $this->addField(new FormulaField('COALESCE(LEAST(jt.wallduration / jt.timelimit, 1), -1)', 'walltime_accuracy')); // This is used by Integrations and not currently shown on the XDMoD interface $this->addField(new TableField($factTable, 'name', 'job_name'));