agents-relay 1.0.89 → 1.0.90
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 +4 -1
- package/package.json +1 -1
package/dist/pool.js
CHANGED
|
@@ -88,7 +88,10 @@ export class RepositoryWorkerPool {
|
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
90
|
const store = new GitHubStore(this.client, target.repository, target.prNumber, this.trustedAuthors);
|
|
91
|
-
|
|
91
|
+
const reconciler = this.makeReconciler(store, Math.max(1, this.concurrency));
|
|
92
|
+
await reconciler.handleEvent(event);
|
|
93
|
+
if (['task.completed', 'task.failed', 'task.blocked', 'task.cancelled'].includes(event.type))
|
|
94
|
+
await reconciler.reconcile(event.job_id);
|
|
92
95
|
}
|
|
93
96
|
async watch(bus) {
|
|
94
97
|
return bus.subscribeAll(async (event) => {
|