Skip to content

Commit

Permalink
update proper use of wait_for_task
Browse files Browse the repository at this point in the history
We no longer have session[:async]
Instead we use params (they are taken from the task injected back into the params)
  • Loading branch information
kbrock committed Feb 27, 2025
1 parent 04c3972 commit 79f85d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/queue_wait.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ When the task is finished, the `:action` passed in is called with the original p

```
def create_finished
task_id = session[:async][:params][:task_id]
tenant_name = session[:async][:params][:name]
task_id = params[:task_id]
tenant_name = params[:name]
task = MiqTask.find(task_id)
if MiqTask.status_ok?(task.status)
add_flash(_("%{model} \"%{name}\" created") % {
Expand Down

0 comments on commit 79f85d7

Please sign in to comment.