Skip to content
Snippets Groups Projects

Use `is_read_only` to allow/forbid to update Worker Activity

Merged Manon Blanco requested to merge do-not-store-activity-in-read-only into master
1 file
+ 0
4
Compare changes
  • Side-by-side
  • Inline
@@ -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",
Loading