Class: Core::SingleScheduler
- Defined in:
- lib/core/single_scheduler.rb
Instance Method Summary collapse
- #connector_settings ⇒ Object
-
#initialize(connector_id, poll_interval, heartbeat_interval) ⇒ SingleScheduler
constructor
A new instance of SingleScheduler.
Methods inherited from Scheduler
Constructor Details
#initialize(connector_id, poll_interval, heartbeat_interval) ⇒ SingleScheduler
Returns a new instance of SingleScheduler.
16 17 18 19 |
# File 'lib/core/single_scheduler.rb', line 16 def initialize(connector_id, poll_interval, heartbeat_interval) super(poll_interval, heartbeat_interval) @connector_id = connector_id end |
Instance Method Details
#connector_settings ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/core/single_scheduler.rb', line 21 def connector_settings connector_settings = Core::ConnectorSettings.fetch_by_id(@connector_id) [connector_settings].compact rescue *Utility::AUTHORIZATION_ERRORS => e # should be handled by the general scheduler raise e rescue StandardError => e Utility::ExceptionTracking.log_exception(e, "Could not retrieve the connector by id #{@connector_id} due to unexpected error.") [] end |