Skip to content
Snippets Groups Projects
Commit 57144fde authored by Manon Blanco's avatar Manon Blanco
Browse files

Remove unused condition

parent 16c5a31e
No related branches found
No related tags found
1 merge request!387Use `is_read_only` to allow/forbid to update Worker Activity
Pipeline #127530 passed
This commit is part of merge request !387. Comments created here will be created in the context of that merge request.
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment