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

Lots more feature and performance changes. Discuss! #36

Closed
wants to merge 2 commits into from

Conversation

achbed
Copy link
Contributor

@achbed achbed commented Dec 1, 2014

Added new QueueLogger class (logging from a queue so we can do thread-safe logging)
Moved core and station to new common log functions (_info and _err) using new QueueLogger
Core now attempts to restart stations that stop
Core now detects new folders on the fly instead of only at start time (stationfolder option)
Station.py has a lot of changes to utilize the common blocking queue ( self.q.get(1) ) only when needed rather than at every step (may increase performance on installs with many stations)
Lots more error handling when blocking queue is utilized to ensure that one error doesn't kill other threads
Renamed station and stations variables within core to be more clear what they contain

TODO:
Detect proper vs unexpected shutdown of stations and restart only unexpected ones
Make new folder detection for stationfolder an option

…-safe logging)

Moved core and station to new common log functions (_info and _err) using new QueueLogger
Core now attempts to restart stations that stop
Core now detects new folders on the fly instead of only at start time (stationfolder option)
Station.py has a lot of changes to utilize the common blocking queue only when needed rather than at every step (may increase performance with many stations)

TODO:
Detect proper vs unexpected shutdown of stations and restart only unexpected ones
Make new folder detection for stationfolder an option
@achbed
Copy link
Contributor Author

achbed commented Dec 1, 2014

There's some issues with this (primarily that newly found stations don't start). I'm prepping a new pull request to replace this.

@achbed achbed closed this Dec 1, 2014
@yomguy
Copy link
Owner

yomguy commented Dec 1, 2014

OK

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 this pull request may close these issues.

2 participants