kaxil commented on a change in pull request #14920:
URL: https://github.com/apache/airflow/pull/14920#discussion_r598949266
##########
File path: airflow/sensors/smart_sensor.py
##########
@@ -672,13 +672,13 @@ def _execute_sensor_work(self, sensor_work):
def flush_cached_sensor_poke_results(self):
"""Flush outdated cached sensor states saved in previous loop."""
- for key, cached_work in self.cached_dedup_works.items():
+ for key, cached_work in self.cached_dedup_works.copy().items():
Review comment:
hmm Why do we need `copy()`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]