Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaton committed Jun 18, 2024
1 parent 71a1327 commit 2113bb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lightning/app/core/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,11 @@ def _run(self) -> bool:
self._start_with_flow_works()
else:
for work in self.works:
_backend = work._backend
work._backend = None
self.backend._register_queues(self, work)
self.backend.create_work(self, work)
work._backend = _backend

if self.should_publish_changes_to_api and self.api_publish_state_queue is not None:
self.api_publish_state_queue.put((self.state_vars, self.status))
Expand Down

0 comments on commit 2113bb7

Please sign in to comment.