Method: Mutx::Database::MongoConnector.running
- Defined in:
- lib/mutx/database/mongo_connector.rb
.running(type) ⇒ Object
304 305 306 307 308 309 |
# File 'lib/mutx/database/mongo_connector.rb', line 304 def self.running type Mutx::Support::Log.debug "Getting db running tasks" if Mutx::Support::Log $results.find({"status" => /started|running/, "task.type" => type}).to_a.map do |result| self.task_data_for result["task"]["id"] end.uniq end |