Skip to content

Commit

Permalink
fix for pyright errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pgm committed Feb 5, 2024
1 parent 55fa2f5 commit 49a89de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/sparklespray/cluster_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def cleanup_node_reqs(self, job_id):
# before updating node requests, make sure the state has been updated to
# reflect which ones are actually still running and which are done.
# node_req_store.cleanup_cluster() assumes the states are up to date.

state = self.get_state(job_id)
state.update()

Expand Down Expand Up @@ -306,6 +307,7 @@ def test_image(
prev_event_description = None
while True:
status = self.nodes.get_add_node_status(operation_id)
assert status is not None
event_description = status.last_event_description
if event_description != prev_event_description:
print(f"Latest event: {event_description}")
Expand Down

0 comments on commit 49a89de

Please sign in to comment.