Repository navigation
Replies: 1 comment
|
Last call for feedback! I think the RFC PR is getting close to the shape we need, I've marked #209 with the final-comments tag. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Background
A multi-application pipeline is a natural fit for one Job: decode a video into frames with ffmpeg, solve structure-from-motion with COLMAP, place 3D objects into the solved scene with Maya, and encode the result with ffmpeg. Each Step needs different software. Today an external Environment Template like a Deadline Cloud Conda or Docker queue environment takes a single
CondaPackagesorDockerImageJob Parameter, so the only option is to install every application in every Session or use a single unified container image, which is slow and sometimes impossible when packages conflict. A Step Environment can't help, because it has no way to ask an externally attached Environment to do anything differently.The RFC idea
A Session runs Tasks from a single Step, so an Environment's
onEnteralways runs for a known Step. The idea has two halves.First, give
<Environment>its own small parameter definition block declaring the values a Step (or Service from the SERVICE RFC) may supply, referenced as{{Env.Param.*}}alongside the existing{{Env.File.*}}. A default can point at a template-level Job Parameter, so the job-wide value applies to any Step that says nothing. The block works identically in an Environment Template and in a Job Template'sjobEnvironments:Second, let a Step supply values through a new kind of entry in its
dependencies, following the pattern the SERVICE RFC uses forservice:. Naming an Environment there means "I depend on an Environment calledCondawrapping me, with these parameter values."required: falselets a Job Template run on a queue that attaches no such Environment, since the Job Template can't know what a queue attaches:A Session for
SolveSfMentersCondawith{{Env.Param.Packages}}equal tocolmap=3.11. The scheduler can group Sessions by their effective Environment parameter values instead of installing everything everywhere. Because both entries are optional, this one Job Template runs on a queue that provides software through conda, one that provides it through Docker, or one where COLMAP is simply preinstalled on the hosts.Some semantics that fall out of this shape. An
environment:entry can name ajobEnvironmentsentry of the same Job Template as well as an external one, so a single parameterized Job Environment can serve several Steps with different values.requireddefaults totrue, since listing something independenciesis declaring a dependency on it. A Step's own script cannot read{{Env.Param.*}}; two wrapping Environments could declare the same parameter name, so the reference is only unambiguous inside the Environment that declares it.All reactions