Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CloWM UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computational Metagenomics
CloWM
CloWM UI
Commits
68d43c64
Verified
Commit
68d43c64
authored
1 year ago
by
Daniel Göbel
Browse files
Options
Downloads
Patches
Plain Diff
Show raw error message when unsuccessfully staring a workflow execution
#106
parent
75415fc1
No related branches found
No related tags found
1 merge request
!103
Resolve "Show raw error message when starting a workflow throws an error"
Pipeline
#48534
passed
1 year ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/workflows/StartWorkflowView.vue
+5
-10
5 additions, 10 deletions
src/views/workflows/StartWorkflowView.vue
with
5 additions
and
10 deletions
src/views/workflows/StartWorkflowView.vue
+
5
−
10
View file @
68d43c64
...
@@ -31,11 +31,13 @@ const versionState = reactive<{
...
@@ -31,11 +31,13 @@ const versionState = reactive<{
workflowVersion
?:
WorkflowVersion
;
workflowVersion
?:
WorkflowVersion
;
loading
:
boolean
;
loading
:
boolean
;
workflowExecutionError
?:
string
;
workflowExecutionError
?:
string
;
errorText
:
string
;
}
>
({
}
>
({
parameterSchema
:
undefined
,
parameterSchema
:
undefined
,
workflowVersion
:
undefined
,
workflowVersion
:
undefined
,
loading
:
false
,
loading
:
false
,
workflowExecutionError
:
undefined
,
workflowExecutionError
:
undefined
,
errorText
:
""
,
});
});
watch
(
watch
(
...
@@ -94,9 +96,7 @@ function startWorkflow(
...
@@ -94,9 +96,7 @@ function startWorkflow(
})
})
.
catch
((
err
:
ApiError
)
=>
{
.
catch
((
err
:
ApiError
)
=>
{
console
.
error
(
err
);
console
.
error
(
err
);
if
(
err
.
body
[
"
detail
"
].
includes
(
"
workflow execution limit
"
))
{
versionState
.
errorText
=
err
.
body
[
"
detail
"
]
??
""
;
versionState
.
workflowExecutionError
=
"
limit
"
;
}
errorToast
?.
show
();
errorToast
?.
show
();
})
})
.
finally
(()
=>
{
.
finally
(()
=>
{
...
@@ -118,13 +118,8 @@ onMounted(() => {
...
@@ -118,13 +118,8 @@ onMounted(() => {
>
>
<template
#default
>
Error starting workflow
</
template
>
<template
#default
>
Error starting workflow
</
template
>
<
template
#body
>
<
template
#body
>
<template
v-if=
"versionState.workflowExecutionError === 'limit'"
>
There was an error with starting the workflow execution:
<br
/>
You have too many active workflow executions to start a new one.
"
{{
versionState
.
errorText
}}
"
</
template
>
<
template
v-else
>
There was an error with starting the workflow execution. Look in the
console for more information.
</
template
>
</
template
>
</
template
>
</bootstrap-toast>
</bootstrap-toast>
<parameter-schema-form-component
<parameter-schema-form-component
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment