Clean up stale pending jobs and add job ID to display

- Auto-delete pending jobs with 0 results (from failed searches/500 errors)
- Show job ID (#N) in manage page and step2 to distinguish identical jobs
- Move timestamp to subtitle line on manage page for cleaner layout
This commit is contained in:
Sebastian Almberg 2026-03-12 11:29:39 +01:00
parent 8e66f32ddc
commit 99148eee76
3 changed files with 6 additions and 5 deletions

View file

@ -282,8 +282,8 @@ class BulkInfoProviderImportController extends AbstractController
$updatedJobs = true;
}
// Mark jobs with no results for deletion (failed searches)
if ($job->getResultCount() === 0 && $job->isInProgress()) {
// Mark jobs with no results for deletion (failed searches or stale pending)
if ($job->getResultCount() === 0 && ($job->isInProgress() || $job->isPending())) {
$jobsToDelete[] = $job;
}
}