stilt.execution.runner.resolve_compute_root#
- stilt.execution.runner.resolve_compute_root(project, compute_root=None)[source]#
Return the compute root of project: the directory its workdirs are made in.
That is compute_root when given, else the
PYSTILT_COMPUTE_ROOTenvironment variable when it is set and not empty, else$TMPDIR/pystilt/<project name>. The path is absolute and resolved, so a worker handed it gets the same directory. Projects can share one compute root, since each run gets a new workdir in it.