lib/kaya/background_jobs/workers/execution_performer.rb in kaya-0.0.12 vs lib/kaya/background_jobs/workers/execution_performer.rb in kaya-0.0.13
- old
+ new
@@ -51,9 +51,15 @@
result.pid= Kaya::Support::Processes.fork_this command
result.running!
result.save!
$K_LOG.debug "[result:#{result.id}] Process => #{result.pid}(PID) | command => saved | result as => running" if $K_LOG
+ suite = Kaya::Suites::Suite.get(result.suite_id)
+ begin
+ suite.check_last_result!
+ sleep 2
+ end while not suite.is_ready?
+
end
end
end
end