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
!1044
use working dir weblog for failed requests
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
use working dir weblog for failed requests
fix_failed_weblog_access
into
main
Overview
2
Commits
1
Pipelines
1
Changes
1
All threads resolved!
Show all comments
Merged
Charlotte Hausman
requested to merge
fix_failed_weblog_access
into
main
2 years ago
Overview
2
Commits
1
Pipelines
1
Changes
1
All threads resolved!
Show all comments
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
94defc4a
1 commit,
2 years ago
1 file
+
5
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
services/workflow/workflow/server.py
+
5
−
0
Options
@@ -172,9 +172,14 @@ class WorkflowWorkingDirRestService:
results_path
=
Path
(
requested_workflow
.
results_dir
)
index_path_list
=
list
(
results_path
.
glob
(
"
products/pipeline-*/html/index.html
"
))
failed_weblog_path_list
=
list
(
results_path
.
glob
(
"
working/pipeline-*/html/index.html
"
))
if
index_path_list
and
len
(
index_path_list
)
==
1
:
index_path
=
index_path_list
[
0
]
elif
failed_weblog_path_list
and
len
(
failed_weblog_path_list
)
==
1
:
# check for weblog in working directory (needed for errored or failed requests)
index_path
=
failed_weblog_path_list
[
0
]
else
:
# otherwise, return weblog not found
return
Response
(
status_int
=
http
.
HTTPStatus
.
NOT_FOUND
,
json_body
=
{
Loading