Skip to content

Commit

Permalink
Create MiqWorker record for containerized workers
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Aug 22, 2024
1 parent a04c02d commit c2f60ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/models/miq_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,7 @@ def self.create_worker_record(*params)
end

def self.start_worker(*params)
w = containerized_worker? ? init_worker_object(*params) : create_worker_record(*params)
w.start
w
create_worker_record(*params).tap(&:start)
end

cache_with_timeout(:my_worker) { server_scope.find_by(:guid => my_guid) }
Expand Down

0 comments on commit c2f60ff

Please sign in to comment.