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.txteach 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): shareiofn(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: