Skip to content

feat(jobs): add bulk retry actions - #732

Merged
hmjn023 merged 1 commit into
developfrom
codex/feat/bulk-job-retry
Sep 3, 2026
Merged

feat(jobs): add bulk retry actions#732
hmjn023 merged 1 commit into
developfrom
codex/feat/bulk-job-retry

Conversation

@hmjn023

@hmjn023 hmjn023 commented Sep 3, 2026

Copy link
Copy Markdown
Owner

概要

Jobs画面から失敗ジョブを選択し、複数件を一括で再試行できるようにします。

変更内容

  • 失敗ジョブの行選択と全選択・選択解除を追加
  • Retry failed jobs アクションと Apply を追加
  • Web/Tauriで既存retry APIを最大8件ずつ実行し、部分失敗を通知
  • 選択ロジックのユニットテストを追加

検証

  • bun run check
  • bun --filter @solid-imager/ui test
  • bun --cwd apps/server test:unit

Summary by CodeRabbit

  • 新機能
    • ジョブ一覧で、失敗したジョブを複数選択して一括再試行できるようになりました。
    • チェックボックスによる個別選択・全選択に対応しました。
    • 処理結果に応じて、成功または失敗件数を通知します。
  • 改善
    • 一括再試行後、ジョブ一覧が自動的に更新されます。

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 946bd105-1a43-4c9b-a576-82ef253763c3

📥 Commits

Reviewing files that changed from the base of the PR and between 8f66e95 and 41717ac.

📒 Files selected for processing (5)
  • apps/server/src/routes/v2/jobs.tsx
  • apps/tauri/src/routes/jobs.tsx
  • packages/ui/src/screens/v2-jobs-screen.tsx
  • packages/ui/src/screens/v2-jobs-selection.test.ts
  • packages/ui/src/screens/v2-jobs-selection.ts

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

失敗ジョブの選択機能と一括再試行機能を追加しました。再試行は最大8件ずつ並列実行します。処理後に一覧を無効化し、成功または失敗の通知を表示します。

Changes

一括ジョブ再試行

Layer / File(s) Summary
選択状態と一括操作
packages/ui/src/screens/v2-jobs-selection.ts, packages/ui/src/screens/v2-jobs-selection.test.ts, packages/ui/src/screens/v2-jobs-screen.tsx
失敗ジョブのID抽出、単一選択、一括選択を追加しました。ジョブ一覧に選択列と一括操作UIを追加しました。フィルタ変更とページ移動時に選択を解除します。
一括再試行の実行
apps/server/src/routes/v2/jobs.tsx, apps/tauri/src/routes/jobs.tsx
選択したジョブを最大8件ずつ並列再試行します。処理後にクエリを無効化し、失敗件数に応じた通知と例外再送出を行います。

Estimated code review effort: 3 (Moderate) | ~25 minutes

Merge Risk: ⚪ Minimal · up to 41717

The Jobs screen now supports selecting failed jobs and retrying them in batches of up to eight, with partial failures reported and the job list refreshed afterward. No current merge-blocking risk is identified.

Sequence Diagram(s)

sequenceDiagram
  participant JobsScreen
  participant RetryRoute
  participant RetryAPI
  participant JobQuery
  JobsScreen->>RetryRoute: 選択したジョブIDを送信
  RetryRoute->>RetryAPI: 最大8件ずつretryを実行
  RetryAPI-->>RetryRoute: 各ジョブの成功または失敗
  RetryRoute->>JobQuery: ジョブ一覧を無効化
  RetryRoute-->>JobsScreen: 成功通知または失敗通知
Loading
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 11 functions across 5 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed タイトルは、ジョブ画面への一括リトライ操作の追加という主要な変更を正確かつ簡潔に示しています。
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/feat/bulk-job-retry

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.

@hmjn023
hmjn023 merged commit ed7d6ff into develop Sep 3, 2026
1 check passed
@hmjn023
hmjn023 deleted the codex/feat/bulk-job-retry branch September 3, 2026 13:51
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