Repository navigation
fix(job): log one line when a scheduled job cannot be selected - #4038
Merged
Merged
Conversation
While the search engine is away, every scheduled job that fires fails to select itself and logged a warning with a full stack trace each time. The warning is now one line with the exception and its root cause; the stack trace of each attempt is still logged at DEBUG.
marevol
force-pushed
the
fix/scheduled-job-select-warn-one-line
branch
from
December 4, 2026 08:36
e8491c6 to
da43861
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
While the search engine is unavailable, every scheduled job that fires cannot be selected, and
ScheduledJobBhv#selectByPKlogsFailed to select a job by <id>with a full stack trace each time. With jobs that fire every minute this fillsfess.logwith the same traces for as long as the outage lasts.Change
The warning is now one line,
Failed to select a job: id=<id>, reason=<exception>, followed by the root cause if there is one. The stack trace of each attempt is still logged atDEBUG, as before. Retries and the return value are unchanged.Tests