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

Biosecurity alerts - cancel a running job if biocache errors occur #321

Open
1 task
nickdos opened this issue Oct 24, 2024 · 1 comment
Open
1 task

Biosecurity alerts - cancel a running job if biocache errors occur #321

nickdos opened this issue Oct 24, 2024 · 1 comment
Assignees
Labels
Biosecurity Alerts for biosecurity species bug

Comments

@nickdos
Copy link
Contributor

nickdos commented Oct 24, 2024

This week's scheduled biosecurity job failed due to DB connection errors:

org.springframework.transaction.TransactionSystemException: Could not roll back Hibernate transaction; nested exception is org.hibernate.TransactionException: Unable to rollback against JDBC Connection

Best guess is that this was a result of the preceding Biocache errors (504 Gateway Time-out), that were caused by "bad" fq queries from one of the lists (used a spatialObject that was too complex).

  • When a biosecurity job encounters an error from Biocache, it should fail and log the reason and then move to the next job
@nickdos
Copy link
Contributor Author

nickdos commented Oct 24, 2024

Instead of sending an email on failure, could we add a flag on the alert entry in the DB, indicating the last job failed. Then show that flag on the biosecurity admin page, next to the alert?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Biosecurity Alerts for biosecurity species bug
Projects
None yet
Development

No branches or pull requests

2 participants