Class: Mutx::Workers::UpdateStarted
- Inherits:
-
Object
- Object
- Mutx::Workers::UpdateStarted
- Includes:
- Sidekiq::Worker, Sidetiq::Schedulable
- Defined in:
- lib/mutx/background_jobs/workers/update_started.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/mutx/background_jobs/workers/update_started.rb', line 12 def perform started_result = nil started_result = Mutx::Database::MongoConnector.started! started_result.each do |line| puts Mutx::API::Execution.reset(line["_id"]) end puts "- ==== NO Started Results Founded ====" if started_result.eql? [] ##Mutx::Database::MongoConnector.force_close end |