Skip to content

Commit 8a8ce63

Browse files
authored
Merge pull request #3084 from vkarak/feat/job-submission-time-loggable
[feat] Expose job submit time as a loggable property
2 parents b1a3391 + 194762e commit 8a8ce63

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/config_reference.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,7 @@ All logging handlers share the following set of common attributes:
10661066
``%(check_job_completion_time_unix)s``, The completion time of the associated run job (see :attr:`~reframe.core.schedulers.Job.completion_time`).
10671067
``%(check_job_exitcode)s``, The exit code of the associated run job.
10681068
``%(check_job_nodelist)s``, The list of nodes that the associated run job has run on.
1069+
``%(check_job_submit_time)s``, The submission time of the associated run job (see :attr:`~reframe.core.schedulers.Job.submit_time`).
10691070
``%(check_jobid)s``, The ID of the associated run job.
10701071
``%(check_keep_files)s``, The value of the :attr:`~reframe.core.pipeline.RegressionTest.keep_files` attribute.
10711072
``%(check_local)s``, The value of the :attr:`~reframe.core.pipeline.RegressionTest.local` attribute.

reframe/core/pipeline.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,6 +1492,12 @@ def _jobid(self):
14921492
if self.job:
14931493
return self.job.jobid
14941494

1495+
@loggable_as('job_submit_time')
1496+
@property
1497+
def _job_submit_time(self):
1498+
if self.job:
1499+
return self.job.submit_time
1500+
14951501
@loggable_as('job_completion_time_unix')
14961502
@property
14971503
def _job_completion_time(self):

0 commit comments

Comments
 (0)