internal/pkg: per-cache SCHED_IDLE

This is cleaner than setting it globally, and is impossible to race.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-03 16:48:43 +09:00
parent 5093a06026
commit 591a60bac9
3 changed files with 9 additions and 6 deletions

View File

@@ -503,6 +503,10 @@ const (
// This behaviour significantly reduces performance and is not recommended
// outside of testing a custom [Artifact] implementation.
CValidateKnown = 1 << iota
// CSchedIdle arranges for the [ext.SCHED_IDLE] scheduling priority to be
// set for [KindExec] and [KindExecNet] containers.
CSchedIdle
)
// Cache is a support layer that implementations of [Artifact] can use to store