Public dry run dryrun-199c53541aa2
This commit is contained in:
parent
c8526c39ef
commit
84ef57d84b
5 changed files with 304 additions and 12 deletions
|
|
@ -442,6 +442,16 @@ impl Coordinator {
|
|||
self.active_processes.get(id)
|
||||
}
|
||||
|
||||
pub fn active_process_for_project(
|
||||
&self,
|
||||
tenant: &TenantId,
|
||||
project: &ProjectId,
|
||||
) -> Option<&ActiveProcess> {
|
||||
self.active_processes
|
||||
.values()
|
||||
.find(|active| &active.tenant == tenant && &active.project == project)
|
||||
}
|
||||
|
||||
pub fn active_process_count(&self) -> usize {
|
||||
self.active_processes.len()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue