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

Feat (Core): Implement abandoned job detection and recovery #30710

Merged

Conversation

jgambarios
Copy link
Contributor

@jgambarios jgambarios commented Nov 19, 2024

This pull request includes some refactoring and improvements to the job queue management system.
The changes primarily focus on removing the job polling mechanism, enhancing job validation, and adding an abandoned job detector. Below are the most important changes:

Removal of Job Polling Mechanism:

Addition of Abandoned Job Detector:

Enhancements to Job Validation:

Event Handling Improvements:

Miscellaneous Changes:

This PR fixes: #30367

…dded `JobEvent` interface to various job event classes and implemented validation logic in `ImportContentletsProcessor`. Introduced the `AbandonedJobDetector` class for detecting and handling abandoned jobs.
…s in transaction handling on the JobQueueManagerAPIImpl
@jgambarios jgambarios marked this pull request as ready for review November 19, 2024 22:17
@jgambarios jgambarios linked an issue Nov 19, 2024 that may be closed by this pull request
@nollymar nollymar linked an issue Nov 20, 2024 that may be closed by this pull request
This change updates the detectAndMarkAbandoned method to return an Optional<Job> instead of null. This helps to avoid potential NullPointerExceptions and improves code readability. Corresponding updates were made to the affected classes and integration tests to handle the Optional return type appropriately.
…onfig

A protected no-arg constructor was added to AbandonedJobDetectorConfig to comply with CDI requirements. This ensures the class can be properly proxied and managed by the CDI container.
@jgambarios jgambarios enabled auto-merge November 20, 2024 21:42
@jgambarios jgambarios added this pull request to the merge queue Nov 21, 2024
Merged via the queue into main with commit ab2ddd4 Nov 21, 2024
37 checks passed
@jgambarios jgambarios deleted the issue-30367-Implement-Abandoned-Job-Detection-and-Recovery branch November 21, 2024 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants