Resolve increased time. (#14074)

This commit is contained in:
thomas chaton 2022-08-08 15:48:50 +02:00 committed by GitHub
parent 7439f5d749
commit 55ae812dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -27,3 +27,5 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
### Fixed
- Resolved a bug where the work statuses will grow quickly and be duplicated ([#13970](https://github.com/Lightning-AI/lightning/pull/13970))
- Resolved a bug about a race condition when sending the work state through the caller_queue ([#14074](https://github.com/Lightning-AI/lightning/pull/14074))

View File

@ -74,7 +74,7 @@ def _send_data_to_caller_queue(work: "LightningWork", caller_queue: "BaseQueue",
data.update({"state": work_state})
logger.debug(f"Sending to {work.name}: {data}")
caller_queue.put(data)
caller_queue.put(deepcopy(data))
# Reset the calls entry.
work_state["calls"] = calls

View File

@ -896,6 +896,7 @@ class SizeWork(LightningWork):
def run(self, signal: int):
self.counter += 1
assert len(self._calls) == 2
class SizeFlow(LightningFlow):