Project

General

Profile

0001-wf-jump-remind-that-the-timeout-is-just-a-minimal-de.patch

Thomas Noël, 05 August 2022 04:44 PM

Download (1.25 KB)

View differences:

Subject: [PATCH 1/2] wf/jump: remind that the timeout is just a minimal delay
 (#67993)

 wcs/wf/jump.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
wcs/wf/jump.py
218 218
        if 'timeout' in parameters:
219 219
            _hint = htmltext(
220 220
                _(
221
                    "ex.: 7 days 1 minute<br/> Usable units of time: %(variables)s. "
222
                    '<br/><span class="warning">Minimal duration is %(granularity)s</span>'
221
                    'ex.: 1 day 12 hours<br/>'
222
                    'Usable units of time: %(variables)s.<br/>'
223
                    'This is only the minimum delay guaranteed in the status: the actual delay can be longer.'
223 224
                )
224 225
            ) % {'variables': ', '.join(timewords()), 'granularity': seconds2humanduration(self._granularity)}
225 226
            if not isinstance(self.timeout, int) and self.get_expression(self.timeout)['type'] != 'text':
226
-