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
!210
Do not erase defaults when reading configuration from worker
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Do not erase defaults when reading configuration from worker
fix-default-user-config
into
master
Overview
0
Commits
2
Pipelines
1
Changes
2
Merged
Yoann Schneider
requested to merge
fix-default-user-config
into
master
2 years ago
Overview
0
Commits
2
Pipelines
1
Changes
2
Expand
Closes
#144 (closed)
Edited
2 years ago
by
Yoann Schneider
0
0
Merge request reports
Viewing commit
992e3084
Prev
Next
Show latest version
2 files
+
8
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
Verified
992e3084
only read when config is actually available
· 992e3084
Yoann Schneider
authored
2 years ago
arkindex_worker/worker/base.py
+
6
−
5
Options
@@ -215,13 +215,14 @@ class BaseWorker(object):
# Load worker run configuration when available
worker_configuration
=
worker_run
.
get
(
"
configuration
"
)
if
worker_configuration
:
if
worker_configuration
and
worker_configuration
.
get
(
"
configuration
"
)
:
logger
.
info
(
"
Loaded user configuration from WorkerRun
"
)
self
.
user_configuration
.
update
(
worker_configuration
.
get
(
"
configuration
"
))
# if debug mode is set to true activate debug mode in logger
if
self
.
user_configuration
.
get
(
"
debug
"
):
logger
.
setLevel
(
logging
.
DEBUG
)
logger
.
debug
(
"
Debug output enabled
"
)
# if debug mode is set to true activate debug mode in logger
if
self
.
user_configuration
.
get
(
"
debug
"
):
logger
.
setLevel
(
logging
.
DEBUG
)
logger
.
debug
(
"
Debug output enabled
"
)
def
configure_cache
(
self
):
task_id
=
os
.
environ
.
get
(
"
PONOS_TASK
"
)
Loading