You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve error message for rich-parameters API when no provisioners are running
When the rich-parameters API endpoint is called and the job hasn't completed,
the previous error message 'Job hasn't completed!' was unhelpful and didn't
explain why the job was stuck.
This change enhances the error handling to:
1. Check if there are any active provisioners for the organization
2. If no active provisioners are found, return a clear error message
explaining that provisioners are needed and providing actionable guidance
3. If provisioners are available but the job still hasn't completed,
fall back to the original error message
The new error message helps users understand that they need to start a
provisioner or contact their administrator to resolve template parameter
resolution issues.
Fixes: #18979
Co-authored-by: angrycub <464492+angrycub@users.noreply.github.com>
Message: "No provisioners are currently running for this organization. Please start a provisioner or contact your administrator to enable template parameter resolution.",
214
+
Detail: "Template parameter resolution requires an active provisioner to process the job.",
215
+
})
216
+
return
217
+
}
218
+
219
+
// Provisioners are available but job still hasn't completed
0 commit comments