-
Notifications
You must be signed in to change notification settings - Fork 2
Old md-cloud fixes that should better go to master #97
base: master
Are you sure you want to change the base?
Conversation
@@ -28,11 +26,17 @@ def before_sleep_log(retry_state): | |||
retry_state.outcome)) | |||
|
|||
|
|||
def is_operational_error(e): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to fix this in order to properly catch Psql operational errors
signal.signal(signal.SIGINT, self.exit_gracefully) | ||
signal.signal(signal.SIGTERM, self.exit_gracefully) | ||
try: | ||
signal.signal(signal.SIGINT, self.exit_gracefully) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines can only be executed if you instantiate the daemons in the main execution thread, but that is not the case in md_cloud_compute
self.session.commit() | ||
return t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here the lifecycle was not handled properly so I got errors (but in sqlite it doesn't matter because there are no connections)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
No description provided.