Skip to content

Commit

Permalink
Merge pull request #68 from agrare/always_create_worker_record
Browse files Browse the repository at this point in the history
Always create opentofu_worker miq_workers record

(cherry picked from commit d13296d)
  • Loading branch information
Fryguy committed Aug 22, 2024
1 parent ee46926 commit fde903d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/opentofu_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ def self.kill_priority
MiqWorkerType::KILL_PRIORITY_GENERIC_WORKERS
end

def self.start_worker(*params)
create_worker_record(*params).tap(&:start)
end

def worker_deployment_name
@worker_deployment_name ||= "#{deployment_prefix}opentofu-runner"
end
Expand Down

0 comments on commit fde903d

Please sign in to comment.