We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7e0747 commit 5270251Copy full SHA for 5270251
temporalio/worker/_workflow_instance.py
@@ -391,8 +391,12 @@ def activate(
391
392
# Run one iteration of the loop. We do not allow conditions to
393
# be checked in patch jobs (first index) or query jobs (last
394
- # index).
395
- self._run_once(check_conditions=index == 1 or index == 2)
+ # index). No need to wake up if all we're doing is evicting.
+ is_only_evict = all(
396
+ [job.HasField("remove_from_cache") for job in job_set]
397
+ )
398
+ if not is_only_evict:
399
+ self._run_once(check_conditions=index == 1 or index == 2)
400
except Exception as err:
401
# We want some errors during activation, like those that can happen
402
# during payload conversion, to be able to fail the workflow not the
0 commit comments