Method: OpenC3::ReactionModel#notify_disable

Defined in:
lib/openc3/models/reaction_model.rb

#notify_disableObject



226
227
228
229
230
231
232
# File 'lib/openc3/models/reaction_model.rb', line 226

def notify_disable
  @enabled = false
  # disabling clears the snooze so when it's enabled it can immediately run
  @snoozed_until = nil
  notify(kind: 'disabled')
  # update() will be called by the reaction_microservice
end