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

[processing] Fix errors and improve error handling #756

Merged
merged 12 commits into from
May 31, 2017

Conversation

arnaud-morvan
Copy link
Contributor

Relate #754

@arnaud-morvan arnaud-morvan force-pushed the amorvan_fix_process branch from 7a02dd0 to 7b990e9 Compare May 24, 2017 08:23
Copy link
Collaborator

@fvanderbiest fvanderbiest left a 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.')
Copy link
Collaborator

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')
Copy link
Collaborator

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

@@ -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),
Copy link
Collaborator

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 {}

@arnaud-morvan arnaud-morvan force-pushed the amorvan_fix_process branch 2 times, most recently from 0dd41e2 to 517a078 Compare May 31, 2017 08:35
@arnaud-morvan arnaud-morvan force-pushed the amorvan_fix_process branch from 517a078 to dd37f6d Compare May 31, 2017 09:02
@arnaud-morvan
Copy link
Contributor Author

@fvanderbiest : I've fixed tests and added some more tests in test_completing (last commit), if you can take a look.

@arnaud-morvan arnaud-morvan force-pushed the amorvan_fix_process branch from 00923e7 to 927c968 Compare May 31, 2017 11:48
@arnaud-morvan arnaud-morvan merged commit d317c86 into master May 31, 2017
@arnaud-morvan arnaud-morvan deleted the amorvan_fix_process branch May 31, 2017 11:56
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