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
[TTAHUB-1896] Rework worker and resource processer for increased stability and complete processing #1640
base: main
Are you sure you want to change the base?
Conversation
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.
Ran for a year seeing alot of titles being updated along with the new mime type column.
Some tests are still failing.
const onCompletedAWSElasticsearchQueue = (job, result) => { | ||
const onFailedAWSElasticsearchQueue = async (job, error) => { | ||
auditLogger.error(`job ${job.data.key} failed with error ${error}`); | ||
await job.retry(); |
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.
Not sure we should be manually triggering retries. This should be handled automatically by the bull framework when an exception is thrown.
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 see this in a few places below.
Description of change
Add awaits to the processing of queues
How to test
Issue(s)
Checklists
Every PR
Production Deploy
After merge/deploy