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
57144fde
Commit
57144fde
authored
1 year ago
by
Manon Blanco
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused condition
parent
16c5a31e
No related branches found
No related tags found
1 merge request
!387
Use `is_read_only` to allow/forbid to update Worker Activity
Pipeline
#127530
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/worker/__init__.py
+0
-4
0 additions, 4 deletions
arkindex_worker/worker/__init__.py
with
0 additions
and
4 deletions
arkindex_worker/worker/__init__.py
+
0
−
4
View file @
57144fde
...
...
@@ -278,10 +278,6 @@ class ElementsWorker(
),
"
element_id shouldn
'
t be null and should be an UUID or str
"
assert
isinstance
(
state
,
ActivityState
),
"
state should be an ActivityState
"
if
self
.
is_read_only
:
logger
.
warning
(
"
Cannot update activity as this worker is in read-only mode
"
)
return
True
try
:
self
.
request
(
"
UpdateWorkerActivity
"
,
...
...
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