Skip to content
Ragon
Star
Home
On this page

Queue tasks

Night Shift runs what is in a repository's queue. Add a task from a ragon session or from the command line, repeat a task on a schedule, or let a night start by queueing small fixes of its own.

Queue a task

In a repository, in ragon:

/night add Fix the off-by-one in the pager and add a test
/night add --test "pytest tests/test_pager.py -q" Fix the off-by-one in the pager
/night list
/night show <id>
/night drop <id>

Queueing never calls the model. --test names the command that must pass for the task; without one the model's own comparison decides between attempts. The same commands work from a shell as ragon night add …, ragon night list and so on. --best-of N sets the number of attempts for one task, and --on <node> sends it to a paired node (worked once there).

Repeating tasks

ragon-admin night every --daily -- Run the slow tests and fix what is flaky
ragon-admin night every add --weekly mon --test "pytest -q" -- Update the changelog
ragon-admin night every list
ragon-admin night every drop <id>

Cadences: --daily, --weekly <day>, --days mon,thu, --every <N> nights, --monthly <D>. Each night's run queues the templates that are due, as ordinary tasks.

Let it fill its own queue

Off by default. With [night] autofill = true in dreamference.toml, each night starts by queueing up to five small tasks ([night] autofill_max, 1 to 5) from the failing tests of the latest failed CI run, the desktop QA report and unchecked items in the repository's specs/ documents.

ragon-admin night autofill --dry-run    # what it would queue

Autofilled tasks are marked [autofill:...] on their first line. Review them like any other result.

Next steps