---
sidebar_label: "Core concepts"
title: "Tasks, Trials and Jobs"
description: "Understand Runner, Task, Trial, Dataset, Job, Profile, and training resource boundaries."
last_update:
  date: 2026-11-17
---

<span id="tasks-trials-and-jobs" className="legacy-anchor" />

**A Job manages work, and a Trial records one lifecycle of a managed worker process. A Runner supplies the execution capability; a Recipe supplies user code and its declared inputs and parameters. Bench Jobs organize evaluation Tasks and their attempts. All four Job types share the same list and detail commands, distinguished by `type=bench|sandbox|train|inference`.** The CLI / SDK are clients; the platform validates and freezes inputs, executes tasks, scores results, and manages artifacts.

| Concept | Meaning | Usage |
|---|---|---|
| Runner | A reusable execution package containing `runner.toml` and `main.py` / `main.sh` | Two-file directory or a Dataset's pinned Runner; explicit overrides use `runner="envloop/harbor@<revision>"` |
| Recipe | A versioned extension packaged with `recipe.toml` and `entrypoint.sh`, run by a compatible Runner | [Write and publish a Recipe](recipe-repository.md) |
| Task | An evaluation problem in a Dataset, including instructions, environment, reference solution, and verifier | `dataset={"name": "org/bench", "task_id": "org/task"}` |
| Trial | One managed worker process lifecycle within a Bench, Sandbox, Train or Inference Job, identified by `trial_id` and `type` | `el trial get TRIAL_ID` |
| Dataset | Versioned environment Tasks, structured records or trajectories; select the type and config / split needed by your workflow | `el job submit --dataset NAME` |
| Job | A run identified by `job_id` and `type` (`bench`, `sandbox`, `train` or `inference`); Bench Jobs organize member Trials and attempts | `client.jobs.submit(...)` |
| Profile | An execution parameter template, snapshotted on submission; not a running resource | `profile={...}` or a named Profile |
| Artifact | Output files and hashes beyond stdout / stderr | `client.trials.result(...)` |

Submit new evaluations as Bench Jobs. An inline or selected single Task creates a one-member Job; `attempts` defaults to 1. Its Trial ID is in `members[0].attempts[0].trial_id`. Inline Jobs have no Dataset reference; absent metadata displays `—`. Historical standalone Trials retain their IDs and nullable `job_id`. A training step, inference request or retry within the same worker process does not create another Trial; a worker restart has a new lifecycle.

## State and score

Trial wait terminal states are `succeeded`, `failed`, and `cancelled`. Job wait terminal states are **`completed`**, `failed`, and `cancelled`; a Bench Job's `completed` status means collection execution has ended, so still inspect each Trial and its scores. After training, check saved checkpoints and cleanup status separately.

Execution status and evaluation score are separate: benchmark verifier rewards are recorded on their own. A missing score stays missing; do not parse scores from stdout. Read Job aggregate results with `jobs.result()`.

## Frozen inputs and retries

The platform freezes task contents, Dataset selection, and parameters when it first accepts a submission. Retry the same request with its original `request_id` to retrieve the accepted execution. Reusing that ID with different inputs is rejected. Use a new request_id when changing parameters or intentionally rerunning; the SDK generates one if omitted.

When Dataset version is omitted, the platform resolves it using its fixed source and default rules. For reproducible runs, record the response's version, source snapshot, Profile, dependency environment, and artifact hashes.

## Client and platform boundary

The CLI / SDK manage resources through public APIs. The platform owns repository snapshots, run databases, execution directories and artifacts; client queries use connection settings and resource IDs. Closing an API client does not stop submitted work. Local platform development still uses a public API address.

Use `Client.remote()` for platform work and the [connection settings](../reference/configuration.md) to select your API address and project.

## Training boundary

A Train Job is a `type=train` Job in the shared registry and Job list, containing one or more independent Trial configurations or repeats. A Train Trial follows a managed training worker process; steps, operations and saved checkpoints do not create additional Trials or evaluation Tasks. Every Train Job is addressed by its `job_id`, including historical ones. Unified Job APIs manage submission, reads and stopping; only platform managed controllers advance training.

The CLI supports training submission and status through `el job submit --type train` / `el job get JOB_ID`, and shared reads and stopping through `el job`. `client.training_jobs` manages Train Jobs. Choose the published Runner, Recipe and inputs for your training workflow using the [Training guide](../training/overview.md), then submit its request with `client.jobs.submit_spec(request)`.

The public interactive training service is retired. Migrate legacy interactive code to Train Jobs using the [migration guide](../training/sdk-compatibility.md). See [Resources](resources.md) for prerequisites and [Training](../training/quickstart.md) for the first run.


## The model lifecycle

| Resource | What it represents | What to keep |
| --- | --- | --- |
| Train Job | One training submission containing independent Trials | Job ID, base model, configuration and metrics |
| Checkpoint | Saved weights or resumable state, depending on the save operation | URI, checkpoint ID, format, size and hash |
| Inference Job | An independent service running a pinned Recipe, optionally with a Checkpoint input | Job ID, Recipe and Checkpoint references, returned model name and readiness |
| Operation | A durable record of asynchronous lifecycle work such as cleanup | Operation ID and final success/error results |
| Temporary resource scope | A group of resources created for one bounded experiment | Scope ID and the resources you explicitly retained |

Stopping a Job and deleting a Checkpoint are different actions. Keep a useful Checkpoint after releasing training compute, and supply it to a separate Inference Job. Stop that Job when finished and check `inference.cleanup_confirmed` for resource release; retained and shared Checkpoints remain. Follow [Train, deploy and call](../training/train-deploy.md) and [Inference](inference.md) for the complete workflow and historical deployment handling.

## Scope, permissions and reproducibility

A workspace contains projects. Select the right project before creating or looking up resources. A project role describes a person's access, while a project key has its own capability restrictions; access to a resource needs the matching permission. See [Authentication](authentication.md) and [Members](../manage/members.md).

For a useful experiment record, keep the dataset revision and selected split/tasks, Runner and Profile versions, model/checkpoint identity, input parameters, Job/Trial IDs, result coverage and output hashes. Compare like-for-like attempts using [Evaluation and results](evaluation.md), and keep [public leaderboards](leaderboards.md) separate from your project's internal evaluation snapshots.

## Which page should I use?

Use [Jobs](jobs.md) for a whole evaluation, [Trials](trials.md) for an individual failure or output file, [Training](../training/overview.md) for model updates, and [Inference](inference.md) for serving a trained model. [Model Loops](rsi-loops.md) follows RSI loops in a read-only Console section; `el loop` starts and controls them and lists the training Jobs each loop launched. The [Console tour](console.md) maps these tasks to the actual pages.
