Skip to content

Add queued job status indicator to issue rows#1346

Open
issuetopr-dev[bot] wants to merge 1 commit intomainfrom
feature/queued-job-status-indicator
Open

Add queued job status indicator to issue rows#1346
issuetopr-dev[bot] wants to merge 1 commit intomainfrom
feature/queued-job-status-indicator

Conversation

@issuetopr-dev
Copy link
Copy Markdown

@issuetopr-dev issuetopr-dev Bot commented Oct 24, 2025

Summary

  • Adds a queued job status indicator to issue rows so users can see when a job has been queued but not yet started.
  • Introduces hasQueuedJob on IssueWithStatus and populates it by inspecting the BullMQ queue for matching autoResolveIssue jobs by repo and issue number.
  • Updates the UI (StatusIndicators) to display a Clock icon with a tooltip when a job is queued and there is no active workflow running.

Details

  • Server-side: lib/github/issues.ts

    • Extended IssueWithStatus with hasQueuedJob.
    • Added getIssuesQueuedJobMap which:
      • Connects to the workflow-jobs BullMQ queue (using shared/services/queue).
      • Checks waiting/delayed/paused/prioritized states and flags issues with a matching queued autoResolveIssue job.
      • Gracefully returns all-false if REDIS_URL is missing or queue lookup fails.
    • Combined this map with existing plan/workflow state data in getIssueListWithStatus.
  • UI: components/issues/StatusIndicators.tsx

    • Displays a Clock icon (amber) with tooltip "Job queued (waiting for worker)" when hasQueuedJob is true and hasActiveWorkflow is false.
    • Keeps existing icons for running workflow (spinner) and plan ready (notebook).

Why this approach

  • Minimal, focused change; no API shape changes on the client beyond a new boolean that we already retrieve server-side along with other status bits.
  • Reuses the existing shared queue connector and avoids heavy or per-issue network calls by pulling queued jobs for the queue and filtering locally.
  • Handles missing Redis gracefully so the issues list still renders in environments without BullMQ configured.

QA notes

  • Enqueue an autoResolveIssue job via the UI.
  • Before a worker picks it up, the issue should show a Clock icon with tooltip.
  • Once the workflow starts (hasActiveWorkflow becomes true), the spinner replaces the Clock icon.

Tooling

  • Ensured ESLint passes (next lint).
  • Avoided running prettier/tsc checks that are not currently passing baseline for the repo without a shared build.

Screenshots

  • N/A (icon-only change with a tooltip).

Closes #1343

…uedJob to IssueWithStatus and fetch queued jobs from BullMQ\n- Display a clock icon with tooltip when a job is queued for an issue\n- Only show the queued indicator if no active workflow is running\n- Keep import order and lint rules satisfied
@issuetopr-dev issuetopr-dev Bot added the AI generated AI-generated Pull Requests label Oct 24, 2025
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Oct 24, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI generated AI-generated Pull Requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add queued job status indicator to issue rows

0 participants