agents-relay 2.0.77 → 2.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pool.js +13 -3
- package/package.json +1 -1
package/dist/pool.js
CHANGED
|
@@ -152,9 +152,19 @@ export class RepositoryWorkerPool {
|
|
|
152
152
|
if (!needsLifecycleReconciliation(job))
|
|
153
153
|
continue;
|
|
154
154
|
const allowance = Math.max(1, Math.min(capacity, ready || (expiredRunning ? 1 : 0) || 1));
|
|
155
|
-
|
|
156
|
-
await this.
|
|
157
|
-
|
|
155
|
+
try {
|
|
156
|
+
await this.reconcileExclusive(job.id, async () => {
|
|
157
|
+
await this.makeReconciler(store, allowance).reconcile(job.id);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
catch (error) {
|
|
161
|
+
observability().record({
|
|
162
|
+
stage: 'reconcile', event: 'reconcile.job_failed', level: 'error', outcome: 'failed',
|
|
163
|
+
message: `Reconcile failed for ${job.id}: ${errorMessage(error)}`,
|
|
164
|
+
correlation: { jobId: job.id, repository: job.repository, prNumber: job.prNumber },
|
|
165
|
+
data: { classification: 'job-isolated' },
|
|
166
|
+
});
|
|
167
|
+
}
|
|
158
168
|
capacity -= allowance;
|
|
159
169
|
}
|
|
160
170
|
}
|