Skip to content

Commit d3f56b6

Browse files
authored
Merge pull request #569 from Xhaka00/fix/issue-499-an-empty-project-list-batch-job-is-marked
fix: treat empty project list batch as completed, not failed
2 parents e26d098 + eac93c3 commit d3f56b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/batch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ async function runBatchSequential(
154154
});
155155

156156
const totalMs = Date.now() - jobStart;
157-
job.status = job.errors.length === job.project_ids.length ? "failed" : "completed";
157+
job.status = job.project_ids.length > 0 && job.errors.length === job.project_ids.length ? "failed" : "completed";
158158
job.completed_at = new Date().toISOString();
159159
job.benchmark = {
160160
total_ms: totalMs,

0 commit comments

Comments
 (0)