Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Base Worker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
Workers
Base Worker
Commits
fc89608e
Commit
fc89608e
authored
1 year ago
by
Yoann Schneider
Committed by
Manon Blanco
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Apply 1 suggestion(s) to 1 file(s)
parent
a4c94580
No related branches found
No related tags found
1 merge request
!490
Explicitely log a warning when the helper doesn't support cache
Pipeline
#157079
passed
1 year ago
Stage: test
Stage: build
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arkindex_worker/cache.py
+1
-1
1 addition, 1 deletion
arkindex_worker/cache.py
with
1 addition
and
1 deletion
arkindex_worker/cache.py
+
1
−
1
View file @
fc89608e
...
...
@@ -380,7 +380,7 @@ def unsupported_cache(func):
def
wrapper
(
self
,
*
args
,
**
kwargs
):
results
=
func
(
self
,
*
args
,
**
kwargs
)
if
not
self
.
is_read_only
and
not
self
.
use_cache
:
if
not
(
self
.
is_read_only
or
self
.
use_cache
)
:
logger
.
warning
(
f
"
This API helper `
{
func
.
__name__
}
` did not update the cache database
"
)
...
...
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