Skip to content

Commit

Permalink
Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadnaseri committed Sep 22, 2024
1 parent eaae594 commit 9ece6bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/py/flwr/server/superlink/state/sqlite_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ def store_task_res(self, task_res: TaskRes) -> Optional[UUID]:
if task_ins is None:
log(
ERROR,
"Failed to store TaskRes: TaskIns with task_id %s does not exist or has expired.",
"Failed to store TaskRes: "
"TaskIns with task_id %s does not exist or has expired.",
task_ins_id,
)
return None
Expand Down Expand Up @@ -820,7 +821,7 @@ def acknowledge_ping(self, node_id: int, ping_interval: float) -> bool:
log(ERROR, "`node_id` does not exist.")
return False

def get_valid_task_ins(self, task_id: str) -> Optional[Dict[str, Any]]:
def get_valid_task_ins(self, task_id: str) -> Optional[dict[str, Any]]:
"""Check if the TaskIns exists and is valid (not expired).
Return TaskIns if valid.
Expand Down

0 comments on commit 9ece6bf

Please sign in to comment.