Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
ssa
workspaces
Merge requests
!1005
fix pass/fail with mutable version bug
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix pass/fail with mutable version bug
2.5_fixes
into
main
Overview
0
Commits
19
Pipelines
1
Changes
1
Merged
Charlotte Hausman
requested to merge
2.5_fixes
into
main
2 years ago
Overview
0
Commits
19
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
ed3196b6
19 commits,
2 years ago
1 file
+
15
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
shared/workspaces/workspaces/capability/schema.py
+
15
−
7
Options
@@ -539,15 +539,23 @@ class QaPass(Action):
@staticmethod
def
check_still_running
(
version
:
CapabilityVersion
)
->
bool
:
workflow_service_url
=
CapoConfig
().
settings
(
WORKFLOW_SETTINGS_KEY
).
serviceUrl
if
version
.
current_execution
.
current_workflow_request_id
:
response
=
requests
.
get
(
f
"
{
workflow_service_url
}
/workflows/
{
version
.
capability
.
name
}
/requests/
"
f
"
{
version
.
current_execution
.
current_workflow_request_id
}
/htcondor_id
"
)
if
json
.
loads
(
response
.
content
.
decode
())[
"
htcondor_job_id
"
]
==
"
None
"
:
# check for execution
if
version
.
current_execution
:
# version is submitted, check for workflow
if
version
.
current_execution
.
current_workflow_request_id
:
response
=
requests
.
get
(
f
"
{
workflow_service_url
}
/workflows/
{
version
.
capability
.
name
}
/requests/
"
f
"
{
version
.
current_execution
.
current_workflow_request_id
}
/htcondor_id
"
)
if
json
.
loads
(
response
.
content
.
decode
())[
"
htcondor_job_id
"
]
==
"
None
"
:
# not running in HTCondor
return
False
return
True
else
:
# workflow not submitted
return
False
return
True
else
:
# version is not submitted
return
False
@staticmethod
Loading