runtraj.execution.kubernetes.project_jobs#
- runtraj.execution.kubernetes.project_jobs(project, execution)[source]#
Return the summaries of a project’s Jobs on the cluster, oldest first (
job_summary()).These are the indexed Jobs of
runtraj submitand the hourly Jobs ofruntraj schedule, in the namespace of execution’skubernetesblock.kubectlselects them by the project’s label, which is only its name, so two projects can share it; a Job is kept only when its annotation names where this project’s pods open it (the inputs’ URL, or the folder’s path).- Raises:
FileNotFoundError – If
kubectlis not onPATH.RuntimeError – If
kubectlcannot list the Jobs; the message is its error.
- Return type:
- Parameters:
project (runtraj.Project)
execution (ExecutionConfig)