Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
CloWM Workflow Service
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
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Computational Metagenomics
CloWM
CloWM Workflow Service
Commits
1bb66544
Verified
Commit
1bb66544
authored
2 years ago
by
Daniel Göbel
Browse files
Options
Downloads
Patches
Plain Diff
Update end-time when workflow execution is canceled
#26
parent
1ad664e1
No related branches found
No related tags found
2 merge requests
!69
Delete dev branch
,
!23
Resolve "Update endtime when workflow is canceled"
Pipeline
#27724
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/crud/crud_workflow_execution.py
+2
-2
2 additions, 2 deletions
app/crud/crud_workflow_execution.py
with
2 additions
and
2 deletions
app/crud/crud_workflow_execution.py
+
2
−
2
View file @
1bb66544
from
uuid
import
UUID
from
clowmdb.models
import
WorkflowExecution
from
sqlalchemy
import
delete
,
or_
,
select
,
update
from
sqlalchemy
import
delete
,
or_
,
select
,
text
,
update
from
sqlalchemy.ext.asyncio
import
AsyncSession
from
sqlalchemy.orm
import
joinedload
...
...
@@ -146,7 +146,7 @@ class CRUDWorkflowExecution:
stmt
=
(
update
(
WorkflowExecution
)
.
where
(
WorkflowExecution
.
_execution_id
==
eid
)
.
values
(
status
=
WorkflowExecution
.
WorkflowExecutionStatus
.
CANCELED
.
name
)
.
values
(
status
=
WorkflowExecution
.
WorkflowExecutionStatus
.
CANCELED
.
name
,
end_time
=
text
(
"
CURRENT_TIMESTAMP
"
)
)
)
await
db
.
execute
(
stmt
)
await
db
.
commit
()
...
...
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