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
Merge requests
!101
Refactoring use_cache attribute on Worker classes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Refactoring use_cache attribute on Worker classes
detect-use-cache
into
master
Overview
1
Commits
4
Pipelines
1
Changes
1
All threads resolved!
Hide all comments
Merged
Eva Bardou
requested to merge
detect-use-cache
into
master
3 years ago
Overview
1
Commits
4
Pipelines
1
Changes
1
All threads resolved!
Hide all comments
Expand
Closes
#66 (closed)
Edited
3 years ago
by
Eva Bardou
0
0
Merge request reports
Viewing commit
ca89e87e
Prev
Next
Show latest version
1 file
+
4
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ca89e87e
Fix a review related code snippet
· ca89e87e
Eva Bardou
authored
3 years ago
arkindex_worker/worker/base.py
+
4
−
4
Options
@@ -167,13 +167,13 @@ class BaseWorker(object):
init_cache_db
(
self
.
cache_path
)
create_tables
()
# Merging parents caches (if there are any) in the current task local cache, unless the database got overridden
if
self
.
args
.
database
is
None
and
paths
is
not
None
:
merge_parents_cache
(
paths
,
self
.
cache_path
)
else
:
logger
.
debug
(
"
Cache is disabled
"
)
# Merging parents caches (if there are any) in the current task local cache, unless the database got overridden
if
self
.
use_cache
and
self
.
args
.
database
is
None
and
paths
is
not
None
:
merge_parents_cache
(
paths
,
self
.
cache_path
)
def
load_secret
(
self
,
name
):
"""
Load all secrets described in the worker configuration
"""
secret
=
None
Loading