-
Notifications
You must be signed in to change notification settings - Fork 19
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
[processing] Fix errors and improve error handling #756
Conversation
7a02dd0
to
7b990e9
Compare
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, minor string updates required IMO.
try: | ||
logger.info('Reset all layer to not downloaded state.') | ||
logger.info('Resetting all layer to not downloaded state.') |
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.
all layers
|
||
|
||
def upgrade(engine_name): | ||
op.add_column('hazardset', sa.Column('processed_error', sa.String(), nullable=True), schema='processing') |
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 would rename processed_error
into processing_error
thinkhazard/processing/completing.py
Outdated
@@ -75,7 +80,8 @@ def do_execute(self, hazardset_id=None): | |||
transaction.commit() | |||
except Exception: | |||
transaction.abort() | |||
logger.error(traceback.format_exc()) | |||
logger.error('An error occurred with {}'.format(id), |
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.
An error occurred with hazardset {}
0dd41e2
to
517a078
Compare
517a078
to
dd37f6d
Compare
@fvanderbiest : I've fixed tests and added some more tests in test_completing (last commit), if you can take a look. |
00923e7
to
927c968
Compare
Relate #754