mache.parallel.system.SubmissionResolution

class mache.parallel.system.SubmissionResolution(target: str, requested_nodes: int, effective_nodes: int, adjustment: Literal['exact', 'decrease', 'increase'], honored: bool = True, reason: str | None = None)[source]

Resolved scheduler target and effective node count.

Variables:
  • target (str) – The selected queue, partition or QOS, or an empty string if the machine does not define any for this target type.

  • requested_nodes (int) – The node count the caller asked for.

  • effective_nodes (int) – The node count after clamping to the selected target’s limits.

  • adjustment ({'exact', 'decrease', 'increase'}) – How effective_nodes compares with requested_nodes.

  • honored (bool) – Whether a requested target was used. True when no target was requested.

  • reason (str or None) – A human-readable explanation of why a requested target could not be honored, suitable for printing verbatim. None when honored is True.

__init__(target: str, requested_nodes: int, effective_nodes: int, adjustment: Literal['exact', 'decrease', 'increase'], honored: bool = True, reason: str | None = None) None

Methods

__init__(target, requested_nodes, ...[, ...])

Attributes

honored

reason

target

requested_nodes

effective_nodes

adjustment