Skip to content

Warn instead of failing when the job monitor status stops advancing - #435

Merged
jayz22 merged 2 commits into
stellar:mainfrom
jayz22:soften-monitor-stall-warning
Sep 8, 2026
Merged

jayz22 merged 2 commits into
stellar:mainfrom
jayz22:soften-monitor-stall-warning

Conversation

@jayz22

@jayz22 jayz22 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

What

A stalled monitor is worth surfacing but not worth aborting the mission.

A stalled monitor is worth surfacing but is not on its own evidence that
catchup is stuck, so it no longer aborts the mission. Only claimed jobs with
no live workers still fail it. The two signals now track separately.
Copilot AI balanced review requested due to automatic review settings September 8, 2026 15:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR changes the job-monitor stall handling in historyPubnetParallelCatchupV2 so that a non-advancing monitor status is surfaced via warnings instead of aborting the mission, while still failing when there are in-progress jobs and no live workers.

Changes:

  • Split stall detection into two paths: fail fast on “no live workers”, but only warn on “monitor not advancing”.
  • Track monitorStuckForSecs separately from stalledForSecs to measure monitor-status stagnation duration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/FSLibrary/MissionHistoryPubnetParallelCatchupV2.fs
Comment thread src/FSLibrary/MissionHistoryPubnetParallelCatchupV2.fs
Copilot AI review requested due to automatic review settings September 8, 2026 15:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Suppressed comments (1)

src/FSLibrary/MissionHistoryPubnetParallelCatchupV2.fs:467

  • Once monitorStuckForSecs crosses the stall timeout, this will log a warning on every subsequent status poll while the monitor remains stuck, which can flood logs and obscure other signals. Consider throttling the warning (e.g., reset the counter after logging) so it warns periodically rather than every interval.
                if monitorNotAdvancing then
                    monitorStuckForSecs <- monitorStuckForSecs + jobMonitorStatusCheckIntervalSecs

                    if monitorStuckForSecs >= jobMonitorStallTimeOutSecs then
                        LogWarn

Comment thread src/FSLibrary/MissionHistoryPubnetParallelCatchupV2.fs
@jayz22
jayz22 merged commit 9c6d851 into stellar:main Sep 8, 2026
3 checks 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.

3 participants