polaris.Step.constrain_resources

Step.constrain_resources(available_resources)[source]

Constrain cpus_per_task and ntasks based on the number of cores available to this step

Parameters:

available_resources (dict) – A dictionary containing available resources (cores, tasks, nodes and cores_per_node)