Skip to content

Commit

Permalink
Merge pull request #3084 from vkarak/feat/job-submission-time-loggable
Browse files Browse the repository at this point in the history
[feat] Expose job submit time as a loggable property
  • Loading branch information
vkarak authored Dec 19, 2023
2 parents b1a3391 + 194762e commit 8a8ce63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/config_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,7 @@ All logging handlers share the following set of common attributes:
``%(check_job_completion_time_unix)s``, The completion time of the associated run job (see :attr:`~reframe.core.schedulers.Job.completion_time`).
``%(check_job_exitcode)s``, The exit code of the associated run job.
``%(check_job_nodelist)s``, The list of nodes that the associated run job has run on.
``%(check_job_submit_time)s``, The submission time of the associated run job (see :attr:`~reframe.core.schedulers.Job.submit_time`).
``%(check_jobid)s``, The ID of the associated run job.
``%(check_keep_files)s``, The value of the :attr:`~reframe.core.pipeline.RegressionTest.keep_files` attribute.
``%(check_local)s``, The value of the :attr:`~reframe.core.pipeline.RegressionTest.local` attribute.
Expand Down
6 changes: 6 additions & 0 deletions reframe/core/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,12 @@ def _jobid(self):
if self.job:
return self.job.jobid

@loggable_as('job_submit_time')
@property
def _job_submit_time(self):
if self.job:
return self.job.submit_time

@loggable_as('job_completion_time_unix')
@property
def _job_completion_time(self):
Expand Down

0 comments on commit 8a8ce63

Please sign in to comment.