Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-web
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Douard
swh-web
Commits
5cb4219c
Commit
5cb4219c
authored
4 months ago
by
David Douard
Browse files
Options
Downloads
Patches
Plain Diff
Use default list of load task types if the scheduler returns none of them
In some test scenarios, task types may not be registered.
parent
4a19c921
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/web/save_code_now/origin_save.py
+7
-1
7 additions, 1 deletion
swh/web/save_code_now/origin_save.py
with
7 additions
and
1 deletion
swh/web/save_code_now/origin_save.py
+
7
−
1
View file @
5cb4219c
...
...
@@ -179,8 +179,14 @@ def get_savable_visit_types_dict(privileged_user: bool = False) -> Dict:
# filter visit types according to scheduler load task types if available
try
:
load_task_types
=
get_scheduler_load_task_types
()
assert
load_task_types
,
"
Empty load task types from scheduler
"
return
{
k
:
v
for
k
,
v
in
task_types
.
items
()
if
v
in
load_task_types
}
except
Exception
:
except
Exception
as
exc
:
logger
.
warning
(
"
Could not retrieve load task types from the scheduler.
"
"
Fall back to the default hardcoded list. Error was: %s
"
,
exc
,
)
return
task_types
...
...
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