You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/running.rst
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -840,17 +840,20 @@ All handlers accept the following set of attributes (keys) in their configuratio
840
840
* ``format`` (default: ``'%(message)s'``): Format string for the printout of the log record.
841
841
ReFrame supports all the `format strings <https://docs.python.org/3.6/library/logging.html#logrecord-attributes>`__ from Python's logging library and provides the following additional ones:
842
842
843
-
- ``check_completion_time``: A timestamp with the completion time of the regression test.
844
-
The ``slurm`` scheduler relies on job accounting (``sacct`` command) and returns the actual termination time of the job.
845
-
The rest of the schedulers report as completion time the moment the framework realizes the test has finished, as soon as the ``wait`` phase ends.
846
-
The accuracy is dependent on the polling rate of the ``wait`` phase and can be lower for tests that take more time.
847
-
If a job or process is not yet completed, ``None`` will be printed.
848
843
- ``check_environ``: The programming environment a test is currently executing for.
849
844
- ``check_info``: Print live information of the currently executing check.
850
845
By default this field has the form ``<check_name> on <current_partition> using <current_environment>``.
851
846
It can be configured on a per test basis by overriding the :func:`info <reframe.core.pipeline.RegressionTest.info>` method of a specific regression test.
852
847
- ``check_jobid``: Prints the job or process id of the job or process associated with the currently executing regression test.
853
848
If a job or process is not yet created, ``-1`` will be printed.
849
+
- ``check_job_completion_time``: *[new in 2.21]* The completion time of the job spawned by this regression test.
850
+
This timestamp will be formatted according to ``datefmt`` (see below).
851
+
The accuracy of the timestamp depends on the backend scheduler.
852
+
The ``slurm`` scheduler backend relies on job accounting and returns the actual termination time of the job.
853
+
The rest of the backends report as completion time the moment when the framework realizes that the spawned job has finished.
854
+
In this case, the accuracy depends on the execution policy used.
855
+
If tests are executed with the serial execution policy, this is close to the real completion time, but if the asynchronous execution policy is used, it can differ significantly.
856
+
If the job completion time cannot be retrieved, ``None`` will be printed.
854
857
- ``check_name``: Prints the name of the regression test on behalf of which ReFrame is currently executing.
855
858
If ReFrame is not in the context of regression test, ``reframe`` will be printed.
856
859
- ``check_num_tasks``: The number of tasks assigned to the regression test.
0 commit comments