lib/flapjack/executive.rb in flapjack-0.7.0 vs lib/flapjack/executive.rb in flapjack-0.7.1

- old
+ new

@@ -55,10 +55,13 @@ logger.error("Invalid timezone string specified in default_contact_timezone or TZ (#{tz_string})") exit 1 end @default_contact_timezone = tz + @archive_events = @config['archive_events'] || false + @events_archive_maxage = @config['events_archive_maxage'] + # FIXME: Put loading filters into separate method # FIXME: should we make the filters more configurable by the end user? options = { :log => opts[:logger], :persistence => @redis } @filters = [] @filters << Flapjack::Filters::Ok.new(options) @@ -98,10 +101,12 @@ def start @logger.info("Booting main loop.") until @should_quit @logger.debug("Waiting for event...") - event = Flapjack::Data::Event.next(:redis => @redis) + event = Flapjack::Data::Event.next(:redis => @redis, + :archive_events => @archive_events, + :events_archive_maxage => @events_archive_maxage) process_event(event) unless event.nil? end @logger.info("Exiting main loop.") end