runtraj.execution.pending#

runtraj.execution.pending(project, *, releases=None, task=None, skip_existing=True)[source]#

Return the ids of the releases a run would run, each once, in project order.

A driver that starts tasks itself writes these to the releases.txt each task reads (runtraj run --releases).

Parameters:
  • project (runtraj.project.Project) – The project.

  • releases (Iterable[str] | None) – Only these releases, in this order.

  • task (tuple[int, int] | None) – (i, n): share i of n (task_share()), taken from all the releases (or all of releases) before the complete ones are dropped, so the tasks of a job array split the releases the same way whenever each starts.

  • skip_existing (bool) – Leave out releases whose simulations are all complete.

Raises:

ValueError – If a release in releases is not in the project.

Return type:

list[str]