runtraj.execution.kubernetes.KubernetesBackend#

class runtraj.execution.kubernetes.KubernetesBackend[source]#

The kubernetes backend: the releases as the pods of one indexed Job (submit_job()).

runtraj submit makes the Job and returns; runtraj status lists the project’s Jobs (project_jobs()). A pod that Kubernetes retries runs its share of every release again and skips the complete ones, so a submit takes no list of releases and no --no-skip.

Attributes#

name

The name of its block under execution, such as slurm.

takes_releases

Whether submit() takes a list of releases and skip_existing=False.

Methods#

describe(waits)

Return the line runtraj submit prints before it makes the Job.

jobs(project, execution)

Return the project's Jobs on the cluster, oldest first (project_jobs()).

submit(project, releases, execution, *, ...)

Make the indexed Job, and return its name; compute_root is each pod's own, so it is not used.

Inherited#

From Backend: here, run, waits