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
83de8bf9
Verified
Commit
83de8bf9
authored
3 years ago
by
Erwan Rouchet
Browse files
Options
Downloads
Patches
Plain Diff
Change default value for user_configuration
parent
fc9874df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!126
Change default value for user_configuration
Pipeline
#78753
passed
3 years ago
Stage: release
Changes
2
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arkindex_worker/worker/base.py
+1
-1
1 addition, 1 deletion
arkindex_worker/worker/base.py
tests/test_base_worker.py
+1
-1
1 addition, 1 deletion
tests/test_base_worker.py
with
2 additions
and
2 deletions
arkindex_worker/worker/base.py
+
1
−
1
View file @
83de8bf9
...
...
@@ -62,7 +62,7 @@ class BaseWorker(object):
logger
.
info
(
f
"
Worker will use
{
self
.
work_dir
}
as working directory
"
)
self
.
process_information
=
None
self
.
user_configuration
=
None
self
.
user_configuration
=
{}
self
.
support_cache
=
support_cache
# use_cache will be updated in configure() if the cache is supported and if there
# is at least one available sqlite database either given or in the parent tasks
...
...
This diff is collapsed.
Click to expand it.
tests/test_base_worker.py
+
1
−
1
View file @
83de8bf9
...
...
@@ -136,7 +136,7 @@ def test_configure_dev_mode(
assert
worker
.
process_information
is
None
assert
worker
.
worker_version_id
==
"
12341234-1234-1234-1234-123412341234
"
assert
worker
.
is_read_only
is
True
assert
worker
.
user_configuration
is
None
assert
worker
.
user_configuration
==
{}
def
test_configure_worker_run
(
mocker
,
monkeypatch
,
responses
,
mock_config_api
):
...
...
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