Skip to content

Commit

Permalink
Add object_type,_id to WorkflowInstance#run_queue
Browse files Browse the repository at this point in the history
Fix an issue where the Workflows::Runner docker_wait thread queues the
workflow_instance with queue_args that have object_type/object_id and
not the resolved object.

WorkflowInstance#run looks the object up by type,id so it has the object
already but Workflows::Runner#docker_wait only has the raw queue_args so
it is better to allow object_type,object_id in
WorkflowInstance#run_queue.
  • Loading branch information
agrare committed Nov 18, 2024
1 parent c0424e7 commit 353bf88
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class ManageIQ::Providers::Workflows::AutomationManager::WorkflowInstance < ManageIQ::Providers::EmbeddedAutomationManager::ConfigurationScript
def run_queue(zone: nil, role: "automate", object: nil, deliver_on: nil, server_guid: nil)
def run_queue(zone: nil, role: "automate", object: nil, object_type: nil, object_id: nil, deliver_on: nil, server_guid: nil)
args = {:zone => zone, :role => role}
if object
args[:object_type] = object.class.name
Expand Down

0 comments on commit 353bf88

Please sign in to comment.