Skip to content

fix(memory): handle missing analyze deps without permanently failing job#25676

Merged
siddseethepalli merged 1 commit into
mainfrom
run-plan/auto-analyze-loop/fix-r1-2
Apr 15, 2026
Merged

fix(memory): handle missing analyze deps without permanently failing job#25676
siddseethepalli merged 1 commit into
mainfrom
run-plan/auto-analyze-loop/fix-r1-2

Conversation

@siddseethepalli

@siddseethepalli siddseethepalli commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix gap from plan review for auto-analyze-loop.md.

The previous handler threw a plain Error when the analyze-deps singleton was unpopulated, expecting the worker to reschedule. In reality, plain Errors are classified as fatal and immediately marked failed. This change returns gracefully so the next upstream trigger re-enqueues cleanly during slow daemon startup.


Open with Devin

@siddseethepalli siddseethepalli merged commit 370bf4a into main Apr 15, 2026
@siddseethepalli siddseethepalli deleted the run-plan/auto-analyze-loop/fix-r1-2 branch April 15, 2026 02:22

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@siddseethepalli

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 370bf4a3de

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

{ jobId: job.id, conversationId },
"Skipping job: analysis deps not yet initialized; will retrigger",
);
return;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Requeue when analysis deps are unavailable

Do not return success here when getAnalysisDeps() is null: in runMemoryJobsOnce, any handler that resolves is immediately completeMemoryJob(...), so this path permanently drops the conversation_analyze job without running analysis. The assumption that it will “retrigger” is not guaranteed, because auto-analysis enqueueing happens on later batch/idle/lifecycle events; conversations with a pre-existing queued job during startup and no subsequent activity will never be analyzed.

Useful? React with 👍 / 👎.

@siddseethepalli

Copy link
Copy Markdown
Contributor Author

Addressed in #26266 — conversation_analyze job now throws BackendUnavailableError when getAnalysisDeps() is null, deferring via the worker's exponential backoff instead of permanently dropping the job.

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