mirror of
https://github.com/LastExceed/spacermake.git
synced 2025-03-12 06:51:43 +01:00
fix slaves with runsContinuously
getting shutdown on master release when another dependent master is booked but not running
This commit is contained in:
parent
6f65853617
commit
e028ce62b0
@ -141,8 +141,14 @@ impl State<Listener> {
|
||||
.read()
|
||||
.await
|
||||
.iter()
|
||||
.filter(|(other, booking)| *other != master && booking.is_running())
|
||||
.flat_map(|(machine, _)| SLAVES_BY_MASTER.get(machine).unwrap_or(&fallback)) //machine being unknown already got logged when it got turned on, so we can ignore it here
|
||||
.filter(|(other, _booking)| *other != master)
|
||||
.flat_map(|(machine, booking)|
|
||||
SLAVES_BY_MASTER
|
||||
.get(machine)
|
||||
.unwrap_or(&fallback) // machine being unknown already got logged when it got turned on, so we can ignore it here
|
||||
.iter()
|
||||
.filter(|slave| booking.is_running() || SLAVE_PROPERTIES[*slave][index::RUNS_CONTINUOUSLY])
|
||||
)
|
||||
.cloned()
|
||||
.collect();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user