phenotypic.sdk_.slurm.get_slurm_array_limit#
- phenotypic.sdk_.slurm.get_slurm_array_limit() int[source]#
Query SLURM for MaxArraySize configuration.
Uses
scontrol show configto retrieve the maximum number of array tasks allowed per job. Falls back to a conservative default if the query fails or SLURM is not available.- Returns:
1000).
- Return type:
Integer limit for array job size (default
Examples
>>> limit = get_slurm_array_limit() >>> limit >= 1000 # At least the default True
Notes
Result is cached for the session (lru_cache)
Default fallback is 1000 (conservative for most clusters)
Common SLURM values: 1001, 10000, 100000