Surgical scheduler logs for jobs observability (phase 1.5)#646
Open
cbb330 wants to merge 1 commit into
Open
Conversation
One-line structured log additions only: OH_SCHED_START config echo, OH_SCHED_ELIGIBLE eligible count, and lastObservedState/executionId on queued-timeout poll exits. No new classes or API changes. Co-authored-by: Cursor <cursoragent@cursor.com>
f99c971 to
c921281
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.
Summary
Phase 1.5 only from
jobs-observability-plan.md§10 — localized log lines, no new classes or entry-point changes:OH_SCHED_STARTinJobsScheduler.main: echoesnumParallelJobs, poller/submitter counts, poll/timeout settings (replaces brittlevalues.yaml case()for cap/deadline KQL).OH_SCHED_ELIGIBLEinOperationTasksBuilder: stable eligible-count token alongside existingmetadata fetched countlog.OperationTask: appendslastObservedState+executionIdto distinguish genuine GGW queue timeout vs poll-lag give-up on terminal jobs.~35 lines across 3 files. Phase 2 (OTEL gauges, heartbeat sampler, DLQ counters) intentionally deferred.
Test plan
OH_SCHED_START,OH_SCHED_ELIGIBLE,lastObservedState=on queued-timeout lines