Skip to content

Commit

Permalink
fix openwpm#1068 : experimented changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadMahdiJavid committed Dec 6, 2023
1 parent 2fb2a2d commit 70affaf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openwpm/storage/storage_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ async def finalize_visit_id(
return None

self.logger.info("Awaiting all tasks for visit_id %d", visit_id)
for task in self.store_record_tasks[visit_id]:

store_record_tasks = self.store_record_tasks[visit_id]
del self.store_record_tasks[visit_id]
for task in store_record_tasks:
await task
del self.store_record_tasks[visit_id]
self.logger.debug(
Expand Down Expand Up @@ -535,6 +538,7 @@ def get_most_recent_status(self) -> int:

# Check last status signal
if (time.time() - self._last_status_received) > STATUS_TIMEOUT:
self._last_status = None
raise RuntimeError(
"No status update from the storage controller process "
"for %d seconds." % (time.time() - self._last_status_received)
Expand Down

0 comments on commit 70affaf

Please sign in to comment.