You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(kb): a crashed run's leftover running state reads as the new sync's progress #20833
autobot-backend/knowledge/connectors/job_state.pyread_job_state: while the sync lease is held it returns the stored state whenever its status is running. If the previous run crashed and left a running state, and a new sync then claims the lease, the poller shows the old run's sources_done, sources_total and worker_id as the new run's progress until the new run writes its own state.
Found in review of #20804. The window is from lease claim to the new run's first state write.
Acceptance criteria
While the lease is held, a stored running state is shown only when it belongs to the run holding the lease (for example by matching job_id or started_at against the lease owner); otherwise the answer is starting.
A test covers a leftover running state from a crashed run under a new lease.
Activity
github-actions commentedon Nov 5, 2026
needs-structure: this issue is missing:phase:M1.<k>label matching milestoneM1 - Seamless install and consistent docs: found noneParent: #Nin the body), unless this is an umbrella with sub-issuesThe label clears on the next issue event once all three are present (#19522).