Skip to content

fix(collector): fail stuck recovery running jobs instead of succeeding - #1157

Open
proerror77 wants to merge 1 commit into
mainfrom
cursor/collector-recovery-running-timeout-1729
Open

fix(collector): fail stuck recovery running jobs instead of succeeding#1157
proerror77 wants to merge 1 commit into
mainfrom
cursor/collector-recovery-running-timeout-1729

Conversation

@proerror77

@proerror77 proerror77 commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Change

Stuck LOB recovery *.running jobs no longer look successful. TimeoutStartSec=0 let systemd report success while an unfinished drain sat in .running. The oneshot now bounds start at 7200s and stop at 120s. Drain of an unfinished running job mark_faileds with step=unfinished-running and exits 1. Stale identity still mark_stales via finalize_passed_running. Failed jobs still require an identity-bearing resume; this does not auto-resume them.

Rebased onto current main after #1154.

Issue relationship

None

Validation

git diff --check

deployment/aliyun/test-rust-lob-recovery-queue.sh — unfinished running drain fails closed into .failed with step=unfinished-running; unit file rejects TimeoutStartSec=0.

Runtime impact and rollback

Collector recovery only. After the next controller/runtime deploy of host-rust-lob-recovery-queue.sh and binance-lob-archiver-recovery@.service, stuck running jobs fail instead of succeeding. Rollback is the previous recovery controller and unit. This is not a live trading change.

Open in Web Open in Cursor 

@proerror77
proerror77 marked this pull request as ready for review September 12, 2026 04:47
@coderabbitai

coderabbitai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 4a37d30a-ea07-4474-bff5-b2ace254b157


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-12T04:50:11.312461Z 3dda17b Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cursor
cursor Bot force-pushed the cursor/collector-recovery-running-timeout-1729 branch from 3dda17b to 28b8089 Compare September 12, 2026 05:00
Recovery oneshot TimeoutStartSec is now 7200s so a hung drain receives
TERM. An unfinished *.running job is marked failed rather than leaving
systemd Result=success. Failed jobs still require an identity-bearing
resume; this does not auto-retry them.

Co-authored-by: Wild Card <proerror77@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/collector-recovery-running-timeout-1729 branch from 28b8089 to e86f5b2 Compare September 12, 2026 05:50
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.

2 participants