Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gateway
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HBP Medical Informatics Platform
gateway
Commits
278be393
Commit
278be393
authored
2 years ago
by
Steve Reis
Browse files
Options
Downloads
Patches
Plain Diff
fix: Issue runexperiment sticks in pending
parent
51079660
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/src/experiments/experiments.resolver.ts
+7
-3
7 additions, 3 deletions
api/src/experiments/experiments.resolver.ts
with
7 additions
and
3 deletions
api/src/experiments/experiments.resolver.ts
+
7
−
3
View file @
278be393
...
...
@@ -79,9 +79,13 @@ export class ExperimentsResolver {
//if the experiment is transient we wait a connector's response before returning a client's response
if
(
isTransient
)
{
const
r
esult
s
=
await
this
.
engineService
.
runExperiment
(
data
,
req
);
const
expR
esult
=
await
this
.
engineService
.
runExperiment
(
data
,
req
);
const
expTransient
=
this
.
experimentService
.
dataToExperiment
(
data
,
user
);
return
{
...
expTransient
,
results
,
status
:
ExperimentStatus
.
SUCCESS
};
return
{
...
expTransient
,
...
expResult
,
status
:
expResult
.
status
??
ExperimentStatus
.
SUCCESS
,
// default status
};
}
//if not transient we will create an experiment in local db
...
...
@@ -96,8 +100,8 @@ export class ExperimentsResolver {
this
.
experimentService
.
update
(
experiment
.
id
,
{
status
:
ExperimentStatus
.
SUCCESS
,
// default status
...
runResult
,
status
:
runResult
.
status
??
ExperimentStatus
.
SUCCESS
,
// default status
finishedAt
:
new
Date
().
toISOString
(),
},
user
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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