Cross Reference: hets_instance_worker.rb
xref
: /
ontohub
/
lib
/
hets_instance_worker.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
require
'
sidekiq
/
worker
'
class
HetsInstanceWorker
<
BaseWorker
sidekiq_options
retry
:
false
,
queue
:
'hets'
def
self.schedule
_update
(
hets_instance_id
)
update_span
=
Settings.hets.time_between_updates.minutes
perform_in
(
update_span
,
hets_instance_id
)
end
def
perform
(
hets_instance_id
)
HetsInstance.check
_up_state
!
(
hets_instance_id
)
ensure
self.class.schedule
_update
(
hets_instance_id
)
end
end