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

787 delete failed queue entries #797

Merged
merged 4 commits into from
Dec 3, 2024
Merged

Conversation

jsjiang
Copy link
Contributor

@jsjiang jsjiang commented Nov 16, 2024

@sfisher Hi Scott,
This script reads identifiers from an input file, then updates the identifier's status to "I" in the async queues (crossref, Datacite, searchIndexer). Finally it updates the identifier's updated time stamp to current time in the refIdentifier table. These updated entries will be deleted later by the proc-cleanup-async-queus job.

Please review and let me know if you have questions.

Thank you

Jing

@jsjiang jsjiang requested a review from sfisher November 16, 2024 01:14
Copy link
Contributor

@sfisher sfisher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me and looks very flexible. Where do the files you use for input come from? Sorry, I'm not tracking all the details of this very well. :-)

@jsjiang
Copy link
Contributor Author

jsjiang commented Nov 19, 2024

@sfisher Hi Scott,
The input file contains the identifiers that need to be deleted from the queues. For the failed ones it is generated by running SQL queries against the queues with status='F'.

Jing

@jsjiang jsjiang merged commit cb4c814 into develop Dec 3, 2024
1 check passed
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