Sha256: 476b2b8b891c78f4cf6a0c209039e45e6aaf2d3c566536ef3ce34e9953050ee7
Contents?: true
Size: 1.15 KB
Versions: 9
Compression:
Stored size: 1.15 KB
Contents
module Kaya module Results def self.all_results_for suite_id Kaya::Database::MongoConnector.results_for suite_id end def self.results_ids_for suite_id all_results_for(suite_id).map do |result| result["_id"] end end def self.all_results_ids Kaya::Database::MongoConnector.all_results_ids end def self.find_for key Kaya::Database::MongoConnector.find_results_for_key key end def self.find_for_status status Kaya::Database::MongoConnector.find_results_for_status status end def self.all_results Kaya::Database::MongoConnector.all_results end def self.find_all_for_key key Kaya::Database::MongoConnector.find_results_for_key key end # Resets all results with running status def self.reset_defuncts Kaya::Database::MongoConnector.all_results.select do |result| ["started","running"].include? result["status"] end.each do |result| Kaya::Support::Processes.kill_by_result_id(result["_id"]) end.each do |result| result = Kaya::Results::Result.get(result["_id"]) result.reset! end end end end
Version data entries
9 entries across 9 versions & 1 rubygems