-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Issue #79 and #80 - Data archiving and better interrupt handling Add optional data archiving support. Users can enable data archiving via ait.gui.enable_data_archiving() prior to calling ait.gui.wait(). By default InfluxDB will be used but an optional argument can be set when calling enable_data_archiving() to choose a different class. Update greenlet handling for monitoring and data archive tasks so that exits via Ctrl-C are cleaner. Greenlet functions are now wrapped in gevent.util.wrap_errors so that KeyboardInterrupt exceptions are returned instead of raised. This allows us to avoid stack traces being printed when killing the GUI. Greenlet tracking has been changed from individual global variables to a list of greenlet instances. Clean up code has been updated with this change as well. The ait.gui.wait function has been updated to use gevent.joinall if one or more of the optional services (data archiving or telemetry monitoring at the moment) are in use. This gives us a bit more control over how we handle greenlets that have returned and how exceptions are raised. If the optional services aren't being used we default to gevent.wait instead. * - Fix except block
- Loading branch information
Showing
1 changed file
with
72 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters