Skip to content

Commit d94bf52

Browse files
committed
Add reference docs
1 parent d59edbd commit d94bf52

File tree

4 files changed

+129
-1
lines changed

4 files changed

+129
-1
lines changed

docs/config_reference.rst

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ It consists of the following properties, which we also call conventionally *conf
7171
7272
:required: No
7373

74-
A list of `general configuration objects <#general-configuration>`__.
74+
A list of :ref:`general configuration objects <general-configuration>`.
7575

7676
.. py:data:: storage
7777
@@ -1843,6 +1843,8 @@ Result storage configuration
18431843
For a detailed description of this property, have a look at the :attr:`~environments.target_systems` definition for environments.
18441844

18451845

1846+
.. _general-configuration:
1847+
18461848
General Configuration
18471849
=====================
18481850

@@ -1934,6 +1936,65 @@ General Configuration
19341936
Timeout value in seconds used when checking if a git repository exists.
19351937

19361938

1939+
.. py:attribute:: general.poll_randomize_ms
1940+
1941+
:required: No
1942+
:default: :obj:`None`
1943+
1944+
.. versionadded:: 4.9
1945+
1946+
Range of randomization of the polling interval in milliseconds.
1947+
1948+
If not :obj:`None`, ReFrame will randomize its polling interval within the given range, otherwise no randomization will occur.
1949+
The range value must be in the form ``[l, h]`` where ``l``, ``h`` are integers such that ``l<=0`` and ``h>=0``.
1950+
1951+
See ":ref:`poll-control`" for more details.
1952+
1953+
1954+
.. py:attribute:: general.poll_rate_decay
1955+
1956+
:required: No
1957+
:default: 0.1
1958+
1959+
.. versionadded:: 4.9
1960+
1961+
The decay factor of the polling rate.
1962+
1963+
This is a real number in the range ``[0,1]``.
1964+
If the decay is ``0``, then the polling rate will be constant at :attr:`~general.poll_rate_max`.
1965+
If the decay is ``1``, then the polling rate will be binary taking either the :attr:`~general.poll_rate_max` or :attr:`~general.poll_rate_min` values.
1966+
1967+
See ":ref:`poll-control`" for more details.
1968+
1969+
1970+
.. py:attribute:: general.poll_rate_max
1971+
1972+
:required: No
1973+
:default: 10
1974+
1975+
.. versionadded:: 4.9
1976+
1977+
The maximum desired polling rate.
1978+
1979+
If :attr:`~general.poll_randomize_ms` is set to a range that allows the polling interval to be decreased (``l<0``), then the effective polling rate can exceed instantaneously the maximum desired rate.
1980+
1981+
See ":ref:`poll-control`" for more details.
1982+
1983+
1984+
.. py:attribute:: general.poll_rate_min
1985+
1986+
:required: No
1987+
:default: 0.1
1988+
1989+
.. versionadded:: 4.9
1990+
1991+
The minimum desired polling rate.
1992+
1993+
When the desired polling rate reaches this value, ReFrame will not decrease it further.
1994+
1995+
See ":ref:`poll-control`" for more details.
1996+
1997+
19371998
.. py:attribute:: general.pipeline_timeout
19381999
19392000
Timeout in seconds for advancing the pipeline in the asynchronous execution policy.

docs/manpage.rst

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,6 +2100,67 @@ Whenever an environment variable is associated with a configuration option, its
21002100
.. versionadded:: 3.10.0
21012101

21022102

2103+
.. envvar:: RFM_POLL_RANDOMIZE_MS
2104+
2105+
Range of randomization of the polling interval in milliseconds.
2106+
2107+
The range is specified in the form ``l,h``.
2108+
2109+
.. table::
2110+
:align: left
2111+
2112+
================================== ==================
2113+
Associated command line option N/A
2114+
Associated configuration parameter :attr:`~config.general.poll_randomize_ms`
2115+
================================== ==================
2116+
2117+
.. versionadded:: 4.9
2118+
2119+
.. envvar:: RFM_POLL_RATE_DECAY
2120+
2121+
The decay factor of the polling rate.
2122+
2123+
.. table::
2124+
:align: left
2125+
2126+
================================== ==================
2127+
Associated command line option N/A
2128+
Associated configuration parameter :attr:`~config.general.poll_rate_decay`
2129+
================================== ==================
2130+
2131+
.. versionadded:: 4.9
2132+
2133+
2134+
.. envvar:: RFM_POLL_RATE_MAX
2135+
2136+
The maximum desired polling rate.
2137+
2138+
.. table::
2139+
:align: left
2140+
2141+
================================== ==================
2142+
Associated command line option N/A
2143+
Associated configuration parameter :attr:`~config.general.poll_rate_max`
2144+
================================== ==================
2145+
2146+
.. versionadded:: 4.9
2147+
2148+
2149+
.. envvar:: RFM_POLL_RATE_MIN
2150+
2151+
The minimum desired polling rate.
2152+
2153+
.. table::
2154+
:align: left
2155+
2156+
================================== ==================
2157+
Associated command line option N/A
2158+
Associated configuration parameter :attr:`~config.general.poll_rate_min`
2159+
================================== ==================
2160+
2161+
.. versionadded:: 4.9
2162+
2163+
21032164
.. envvar:: RFM_PREFIX
21042165

21052166
General directory prefix for ReFrame-generated directories.

docs/polling.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. _poll-control:
2+
3+
===================================
4+
Undestanding job polling in ReFrame
5+
===================================

docs/topics.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ Advanced Topics
77
:maxdepth: 2
88

99
pipeline
10+
polling
1011
dependencies
1112
deferrables

0 commit comments

Comments
 (0)