runtraj.execution.kubernetes.submit_job#

runtraj.execution.kubernetes.submit_job(project, pending, execution)[source]#

Make the indexed Job that runs pending releases, and return its name.

With inputs set, the project’s inputs are copied there first (runtraj.execution.inputs.push()) and the pods open that URL; else they open the project folder at its path here, which must be on a volume they mount. With fetch set and a met that downloads, each pod first gets the met files, one pod at a time (--fetch). The Job has completions tasks, or fewer when there are fewer releases. Its manifest is written to _kubernetes/<date_time>_<id>/job.yaml in the project before it is created, and the Job’s name to job.name beside it.

Raises:

ValueError – If the pods would lose their results: the inputs go to a bucket but the output directory is a path, so each pod would write to its own disk.

Return type:

str

Parameters: