pub fn control_job(
adapter: &dyn DatabaseOperations,
config: &DbBackendConfig,
schema: &AppSchema,
actor_id: i64,
execution_id: i64,
retry: bool,
now: &str,
) -> Result<(), DatabaseError>Expand description
Applies a declared queue control with a compare-and-write transition. Admission and role policy belong to the caller; active actor state and the expected job status are checked atomically with the mutation.