-
Notifications
You must be signed in to change notification settings - Fork 0
Refactoring api #61
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
base: dev
Are you sure you want to change the base?
Refactoring api #61
Conversation
We need to make sure that nginx will let the long query/uri get to the server with somthing like this: |
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.
Super travail @paulstretenowich!
|
||
try: | ||
session.commit() | ||
except SQLAlchemyError as error: |
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 we want to rollback before we log errors.
|
||
try: | ||
session.commit() | ||
except SQLAlchemyError as error: |
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.
idem
raise RequestError("No 'Job' has a status, this json won't be ingested.") | ||
try: | ||
session.commit() | ||
except SQLAlchemyError as error: |
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.
here too
session.commit() | ||
except SQLAlchemyError as error: | ||
logger.error("Error: %s", error) | ||
session.rollback() |
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.
idem
Still need to complete ingest_delivery method