We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4df991e + 245d4a1 commit 6085d04Copy full SHA for 6085d04
app/controllers/application_controller/wait_for_task.rb
@@ -11,7 +11,7 @@ def wait_for_task
11
@edit = session[:edit] # If in edit, need to preserve @edit object
12
raise Forbidden, _('Invalid input for "wait_for_task".') unless params[:task_id]
13
14
- async_interval = params[:async_interval] || 1000 # Default interval to 1 second
+ async_interval = params.fetch(:async_interval, 1000).to_i # Default interval to 1 second
15
16
task = MiqTask.find(params[:task_id].to_i)
17
if task.state != "Finished" # Task not done --> retry
0 commit comments