Skip to content

Commit

Permalink
Schema: Add regex validation to --max_memory and --max_time
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Feb 17, 2021
1 parent 299fa8a commit adceb2c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
"description": "Maximum amount of memory that can be requested for any single job.",
"default": "128.GB",
"fa_icon": "fas fa-memory",
"pattern": "^[\\d\\.]+\\.(K|M|G|T)?B$",
"hidden": true,
"help_text": "Use to set an upper-limit for the memory requirement for each process. Should be a string in the format integer-unit e.g. `--max_memory '8.GB'`"
},
Expand All @@ -182,6 +183,7 @@
"description": "Maximum amount of time that can be requested for any single job.",
"default": "240.h",
"fa_icon": "far fa-clock",
"pattern": "^[\\d\\.]+\\.(s|m|h|d)$",
"hidden": true,
"help_text": "Use to set an upper-limit for the time requirement for each process. Should be a string in the format integer-unit e.g. `--max_time '2.h'`"
}
Expand Down

0 comments on commit adceb2c

Please sign in to comment.