Class: Kaya::Workers::ExecutionChecker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/kaya/background_jobs/workers/execution_checker.rb

Instance Method Summary collapse

Instance Method Details

#perform(suite_id) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/kaya/background_jobs/workers/execution_checker.rb', line 7

def perform(suite_id)

  Kaya::Support::Configuration.get
  Kaya::Database::MongoConnector.new Kaya::Support::Configuration.db_connection_data

  suite = Kaya::Suites::Suite.get(suite_id)
  begin
    suite.check_last_result!
    sleep 2
  end while not suite.is_ready?
end