agents get a per-agent repo limit in their permissions record, orgs are locked
max_repos (default 0, 0..=100) lives in the agent's agent-permissions record and is edited on its permissions panel. The controller applies each agent's own value as max_repo_creation at CreateForgeUser and to existing accounts on change, restart and every five minutes; agent accounts may not create organizations.
This commit is contained in:
parent
dc0d08b7fb
commit
1edeb5c55d
1 changed files with 763 additions and 58 deletions
|
|
@ -277,6 +277,7 @@ fn spawn_forge_workers(
|
|||
}
|
||||
forge::runner_token::spawn(Arc::clone(&client));
|
||||
if let Some(queue) = queue {
|
||||
forge::agent_max_repos::spawn(Arc::clone(&client), queue.clone());
|
||||
crate::cache_miss::spawn(
|
||||
queue.clone(),
|
||||
Arc::new(wanted::WantedWriter::new(queue)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue