Skip to content

Commit

Permalink
Run MiqServer.status_update in server process
Browse files Browse the repository at this point in the history
Fixes #20835
[Errno::ESRCH]: No such process ... when run from a worker.

In appliance/systemd, you can run status_update in the server's workers.
In podified, each process is isolated so we must run this, specifically
process_status, in the server process.

It didn't make sense to run this is in the worker processes anyway so
change all installations to run this in the server process.
  • Loading branch information
jrafanie committed Dec 16, 2020
1 parent cc55cd3 commit 1c3d8a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/miq_schedule_worker/jobs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def vmdb_appliance_log_config
end

def miq_server_status_update
queue_work(:class_name => "MiqServer", :method_name => "status_update", :server_guid => MiqServer.my_guid, :priority => MiqQueue::HIGH_PRIORITY)
queue_work(:class_name => "MiqServer", :method_name => "status_update", :queue_name => 'miq_server', :server_guid => MiqServer.my_guid, :priority => MiqQueue::HIGH_PRIORITY)
end

def miq_server_worker_log_status
Expand Down

0 comments on commit 1c3d8a7

Please sign in to comment.