Skip to content

Surgical scheduler logs for jobs observability (phase 1.5)#646

Open
cbb330 wants to merge 1 commit into
linkedin:mainfrom
cbb330:chbush/jobs-scheduler-observability-s10
Open

Surgical scheduler logs for jobs observability (phase 1.5)#646
cbb330 wants to merge 1 commit into
linkedin:mainfrom
cbb330:chbush/jobs-scheduler-observability-s10

Conversation

@cbb330

@cbb330 cbb330 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Phase 1.5 only from jobs-observability-plan.md §10 — localized log lines, no new classes or entry-point changes:

  • OH_SCHED_START in JobsScheduler.main: echoes numParallelJobs, poller/submitter counts, poll/timeout settings (replaces brittle values.yaml case() for cap/deadline KQL).
  • OH_SCHED_ELIGIBLE in OperationTasksBuilder: stable eligible-count token alongside existing metadata fetched count log.
  • Queued-timeout poll exit in OperationTask: appends lastObservedState + executionId to 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

  • Compiles; no test signature changes
  • Post OSS→LI bump: grep cron pod logs for OH_SCHED_START, OH_SCHED_ELIGIBLE, lastObservedState= on queued-timeout lines

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>
@cbb330 cbb330 force-pushed the chbush/jobs-scheduler-observability-s10 branch from f99c971 to c921281 Compare July 8, 2026 09:42
@cbb330 cbb330 changed the title Add scheduler observability for maintenance jobs (§10) Surgical scheduler logs for jobs observability (phase 1.5) Jul 8, 2026
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.

1 participant