diff --git a/law/workflow/remote.py b/law/workflow/remote.py index 368e5281..2a4ef192 100644 --- a/law/workflow/remote.py +++ b/law/workflow/remote.py @@ -513,6 +513,9 @@ def _maximum_resources(cls, resources, n_parallel): # cap by the maximum number of parallel jobs, but in a way such that maximizes the sum of # all possible resources that could be claimed at any given point in time # (for evenly distributed resources across jobs, this would not be necessary) + if not resources: + return {} + if isinstance(resources, dict): resources = list(resources.values())