lib/flapjack/gateways/pagerduty.rb in flapjack-0.6.61 vs lib/flapjack/gateways/pagerduty.rb in flapjack-0.7.0

- old
+ new

@@ -35,10 +35,10 @@ @redis.rpush(@config['queue'], JSON.generate('notification_type' => 'shutdown')) end def start @logger.info("starting") - while not test_pagerduty_connection do + while not test_pagerduty_connection and not @should_quit do @logger.error("Can't connect to the pagerduty API, retrying after 10 seconds") EM::Synchrony.sleep(10) end # TODO: only clear this if there isn't another pagerduty gateway instance running