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
inputsset, 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. Withfetchset and a met that downloads, each pod first gets the met files, one pod at a time (--fetch). The Job hascompletionstasks, or fewer when there are fewer releases. Its manifest is written to_kubernetes/<date_time>_<id>/job.yamlin the project before it is created, and the Job’s name tojob.namebeside 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:
- Parameters:
project (runtraj.Project)
execution (ExecutionConfig)