Skip to content

Commit

Permalink
Merge pull request cylc#6084 from MetRonnie/xrandom
Browse files Browse the repository at this point in the history
Improve xrandom validate function docstring
  • Loading branch information
hjoliver authored Apr 25, 2024
2 parents d559cd6 + 91604ac commit 6f8ce38
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cylc/flow/xtriggers/xrandom.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ def xrandom(


def validate(args: Dict[str, Any]):
"""Validate and manipulate args parsed from the workflow config.
"""Validate the args that xrandom is called with.
Cylc calls this function automatically when parsing the workflow.
Here we specify the rules for args are:
The rules for args are:
* percent: Must be 0 ≤ x ≤ 100
* secs: Must be an integer.
"""
Expand Down

0 comments on commit 6f8ce38

Please sign in to comment.