nemo_gym.tasks.harbor.task
nemo_gym.tasks.harbor.task
Load one task folder, or a folder of task folders, from disk.
Module Contents
Classes
Functions
Data
API
A task folder read into memory.
task_id is the folder name: [task].name is an org/name label that is
not unique across a dataset. image is the prebuilt image when the task
declares one, else the base image of a base-image-only Dockerfile, else None
(a build is required). Without a prebuilt image, workdir, env and user
merge task.toml with what the Dockerfile recorded; task.toml wins.
With a prebuilt image, the Dockerfile contributes no settings.
A task runs in a sandbox exactly when it declares an image or a Dockerfile.
Bases: ValueError
The folder is not a runnable Harbor task.
A folder with task.toml is one task; otherwise its direct children are the tasks.
With skipped, a child that fails to load is recorded there under its folder name
and the others still load; without it the first failure raises. A root that is
itself a task always raises.
Read path as one task. Raises HarborTaskError when it is not one.