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.
Files changed (2) hide show
  1. package/dist/pool.js +13 -3
  2. 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
- await this.reconcileExclusive(job.id, async () => {
156
- await this.makeReconciler(store, allowance).reconcile(job.id);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "2.0.77",
3
+ "version": "2.0.78",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "type": "module",
6
6
  "bin": {