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
!179
Move developer setup in a dedicated method
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Move developer setup in a dedicated method
117-move-developer-setup-in-a-dedicated-method-2
into
master
Overview
25
Commits
5
Pipelines
1
Changes
4
Merged
Thibault Lavigne
requested to merge
117-move-developer-setup-in-a-dedicated-method-2
into
master
2 years ago
Overview
23
Commits
5
Pipelines
1
Changes
4
Expand
Closes
#117 (closed)
Edited
2 years ago
by
Bastien Abadie
0
0
Merge request reports
Viewing commit
8cec3dfc
Prev
Next
Show latest version
4 files
+
8
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
8cec3dfc
suggested changes
· 8cec3dfc
Chaza Abdelwahab
authored
2 years ago
arkindex_worker/worker/__init__.py
+
2
−
6
Options
@@ -67,10 +67,7 @@ class ElementsWorker(
"""
def
__init__
(
self
,
description
=
"
Arkindex Elements Worker
"
,
support_cache
=
False
):
print
(
"
in __init__ in __init__.py before super
"
)
super
().
__init__
(
description
,
support_cache
)
print
(
"
in __init__ in __init__.py after super
"
)
# Add mandatory argument to process elements
self
.
parser
.
add_argument
(
"
--elements-list
"
,
@@ -89,9 +86,6 @@ class ElementsWorker(
self
.
_worker_version_cache
=
{}
# CLI args are stored on the instance so that implementations can access them
self
.
args
=
self
.
parser
.
parse_args
()
def
list_elements
(
self
):
"""
List the elements to be processed, either from the CLI arguments or
@@ -141,6 +135,8 @@ class ElementsWorker(
return
self
.
process_information
.
get
(
"
activity_state
"
)
==
"
ready
"
def
configure
(
self
):
# CLI args are stored on the instance so that implementations can access them
self
.
args
=
self
.
parser
.
parse_args
()
if
self
.
is_read_only
:
super
().
configure_for_developers
()
else
:
Loading