Skip to content
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

Update iwxxmd.py to gracefully recover when observer object dies #45

Closed
mgoberfield opened this issue Oct 1, 2024 · 0 comments · Fixed by #47
Closed

Update iwxxmd.py to gracefully recover when observer object dies #45

mgoberfield opened this issue Oct 1, 2024 · 0 comments · Fixed by #47
Assignees

Comments

@mgoberfield
Copy link
Collaborator

Not so much a bug with iwxxmd.py code as a need to gracefully recover when python's Watchdog observer quits responding to events in the monitored directory.

Steps to reproduce the behavior:
Difficult to reproduce the issue but seems most likely to occur when there is rapid influx of new files (100+ files within a few minutes), but not always. I've found monitoring to run fine for weeks and then suddenly fail. Other times, the observer will fail after a few hours during quiescent times.

Watchdog module has a Observer is_alive() method to determine if the observer is okay. iwxxmd.py will be updated to use this and 'do the right thing' when the current observer stops working.

  • OS: Linux
@mgoberfield mgoberfield self-assigned this Oct 3, 2024
@mgoberfield mgoberfield linked a pull request Oct 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant