Skip to content

Replace scheduler-specific command-line options #486

@vkarak

Description

@vkarak

The --partition, --account, --nodelist etc. options are actually scheduler-specific and, in my opinion, they should not be part of the command-line interface. Instead, the should be passed through a more generic mechanism such as the --job-option switch. There are advantages and disadvantages to what I suggest here:

Pros:

  • Cleaner command-line
  • Less implementation overhead for scheduler backends, since the user is responsible for passing the correct backend options in the special case that he wants to modify how an access to a specific partition is gained. A backend implementor need not be an expert of the scheduler.
  • More uniform behaviour for the scheduler backends. For example, now we assume, at the supposedly scheduler-agnostic frontend, a SLURM-specific syntax for the node list.
  • Avoid subtle bugs such as the one described in Revisit the way frontend options are passed to the scheduler backends #75.

Cons:

  • We lose the automatic mapping of the command-line options to the different backends. This is only true for the --partition one. The rest are simply ignored by all other schedulers except Slurm.
  • Perhaps more typing

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions