yield

package
v1.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package yield is the one place a process steps behind CI: CI over work is a permanent setting, because work creates more CI, and without the ordering the system is unstable.

Every copy the wrapper starts (nova-card, card run, card session), every local test run a coordinator's child makes (nova-ci local), and every card a sprint member or reader launches (nova-swarm native: the wall, the harness and all the card's child runs) calls ToCI on itself before it execs anything: setpriority to Nice, which its children inherit. A CI leg runs at nice 0 and wins the cores the moment it lands; nothing schedules around it. This holds on every bench and every worker kind; it is structure, not a setting a play could forget.

Index

Constants

View Source
const Nice = 15

Nice is the priority every copy, every local test run and every card's launch steps down to. CI legs stay at 0. 15 leaves the scheduler no doubt (three of the four steps between 0 and the floor) while keeping the process above the idle class that a nice 19 would share with backups and indexers.

View Source
const Supported = true

Supported: Linux has setpriority, set on every thread below.

Variables

This section is empty.

Functions

func ToCI

func ToCI() error

ToCI puts this process at Nice. A process already at Nice or below it (a child started under `nice -n 19`, say) is left where it is: raising priority is what an unprivileged process may not do, and the point is already made. That is judged inside setNice, per process on darwin and per thread on Linux, and only for the kernel's refusal to raise (alreadyBehind): one thread's reading never vouches for the others. Any other failure is an error the caller prints, never swallows; on an OS with no setpriority the error says so.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL