Skip to content

Chain Evaluations

Completed exec jobs start evaluations and entry points.

Requirements:

1. Pick a Way

Way Effect
start_evaluation action A new evaluation of another task in the project
gradient/continue.json output More entry points in the running evaluation

2. Start Another Task

Go to Actions -> New Action in the task. Select Start Evaluation as the type and choose the task and event exec_job.completed.

services.gradient.state.tasks.infra.actions = [{
  name = "evaluate-deploy";
  type = "start_evaluation";
  events = [ "exec_job.completed" ];
  config.task = "deploy";
}];
  • Exec jobs of the started evaluation find the starting job in GRADIENT_PARENT_JOB.

3. Add Entry Points

echo '{"attributes":["packages.x86_64-linux.model"]}' > continue.json
gradient-upload continue.json gradient/continue.json
  • Completed jobs add the listed attributes to their evaluation. Existing entry points stay single.
  • Evaluations remain Building until the new entry points finish.
  • Attribute paths stay concrete, without * or ?. Files hold at most 64 KiB.
  • Files from a failed attempt count for nothing. Errors fail the evaluation with continue.json: <error>.
  • Tasks with Report commit status enabled report one commit status for each entry point of the exec job.

Verify Deployment

  • Started evaluations appear on the job page.
  • New entry points appear in the evaluation for the job.

Next Steps