-
Notifications
You must be signed in to change notification settings - Fork 9
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
[SERVICES-2669] Cron job for triggering analytics indexing #1517
base: SERVICES-2668-rest-endpoints-for-managing-indexing
Are you sure you want to change the base?
[SERVICES-2669] Cron job for triggering analytics indexing #1517
Conversation
- add default scroll timeout of '5m' to prevent failure
|
||
await this.indexerPersistence.updateSession(session); | ||
} catch (error) { | ||
await this.markSessionFailed(session); |
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 also save the error somewhere to be easier to debug. Or log it here
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.
done
|
||
return job; | ||
} catch (error) { | ||
job.runAttempts += 1; |
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.
same here
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.
done
return job; | ||
} catch (error) { | ||
job.runAttempts += 1; | ||
console.log('EXTRA ATTEMPT', job.runAttempts); |
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.
log with OriginLogger
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.
done
Reasoning
Proposed Changes
How to test
hyper_dex_analytics
table with data and advance the state of an indexing session