runtraj.execution.runner.resolve_compute_root#

runtraj.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 RUNTRAJ_COMPUTE_ROOT environment variable when it is set and not empty, else $TMPDIR/runtraj/<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.

Return type:

Path

Parameters: