Conversation
| } | ||
|
|
||
| for (SingularityDisasterType disaster : newActiveDisasters) { | ||
| addDisaster(disaster); |
There was a problem hiding this comment.
Doesn't this again add previously added disasters?
There was a problem hiding this comment.
Ah, yeah I can make it skip those. Originally I was going to store a message in there, so it made sense to call that again in case the message had been updated. Can probably do a if (!exists(path)) check first, thanks!
| } | ||
|
|
||
| private void updateDisasterCounter(SingularitySlave slave) { | ||
| if (slave.getCurrentState().getState() == MachineState.ACTIVE) { |
There was a problem hiding this comment.
I might not understand this part fully, but if the slave state is changed to MachineState.DEAD, will this ever be true?
There was a problem hiding this comment.
Ah, yeah the variable could probably use renaming. The one I'm grabbing is actually the previous slave state, not the one we are about to update to. Essentially I'm looking for any transitions from ACTIVE -> DEAD.
|
Going to merge this into disabled actions since they go together and are now both on staging + qa |
Uh oh!
There was an error while loading. Please reload this page.