-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling RuntimeError from Storage Controller in OpenWPM #1079
Comments
since self.status_queue is empty, so again it's going to say if (time.time() - self._last_status_received) > STATUS_TIMEOUT: and is going to use previous self._last_status_received for the new one and raise the exception again |
proposed fix: if self.status_queue.empty() :
self.status_queue.put(0) or maybe i'm handling the exception not correctly |
This implies that the following code has not been running for more than an hour, which is deeply troubling as it should run every 5 seconds. OpenWPM/openwpm/storage/storage_controller.py Lines 237 to 259 in 25c537e
This suggests that you are performing long running blocking operations in the storage controller which breaks it. I would assume that whatever is blocking the process is also preventing any data from getting saved out. This can not be fixed anywhere outside of the storage (controller) process |
Hi,
I am encountering a specific RuntimeError when using OpenWPM and I am seeking advice on the correct approach to handle it. The error occurs as follows:
I attempted to handle this exception with a try-except block, but it doesn't seem to be effective:
I would appreciate any guidance on the correct way to handle this exception. Is there a specific approach or pattern recommended for handling such timeouts or lack of status updates in OpenWPM? Any insights or suggestions would be greatly appreciated.
Thank you.
OpenWPM/openwpm/task_manager.py
Lines 410 to 429 in 25c537e
OpenWPM/openwpm/storage/storage_controller.py
Lines 536 to 555 in 25c537e
The text was updated successfully, but these errors were encountered: