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
Reservation monitor hung with lock #249
Comments
The reason this is happening is because it never receives the headers. This would cause the lock to never release, which results in the issues you are seeing. This is most likely the issue seen in #248. Additionally, I will add a timeout for waiting for the headers so it doesn't totally halt the script if the headers never come. |
@rufus210 I thought more about adding a timeout and I'm not sure it is the best idea. For example, when it times out it will need to skip retrieving/checking reservations (as the headers will be invalid) which isn't bad. However, the timeout can also happen when refreshing the headers right before checking in to ensure the script has a fresh session. In this case, it wouldn't be a good idea to ignore the error and continue with the checkin. One idea I have would be to send a notification to users when this happens so they know the check-in will probably fail (or it can completely stop the check-in and tell the user to do so manually). Let me know your thoughts on this. |
Hey @rufus210, any thoughts on my comment above? |
Ooof, this happened to me. I would appreciate a notification. |
This would be awesome. Similar issue happened to me & I didn't realize the check-in was going to fail until too late. |
Version
Auto-Southwest Check-In v7.3
Browser Version
google-chrome-stable 123.0.6312.86-1
Description
The script missed checking in to a flight for me and looking at the log it hasn't done anything for quite a while. From the logs reservation_monitor acquired a lock but never released it, causing later processing to fail.
To Reproduce
Just running the script normally.
Expected Behavior
Process the trips and check in for them
Relevant logs and program output
Additional context
No response
The text was updated successfully, but these errors were encountered: