Skip to content

Commit a77df5d

Browse files
committed
Fix for backfiller masterQueue/workerQueue
1 parent 22bc5eb commit a77df5d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

apps/webapp/app/routes/admin.api.v1.runs-replication.backfill.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ export async function action({ request }: ActionFunctionArgs) {
5959
throw new Error("Runs replication instance not found");
6060
}
6161

62-
await runsReplicationInstance.backfill(runs);
62+
await runsReplicationInstance.backfill(
63+
runs.map((run) => ({
64+
...run,
65+
masterQueue: run.workerQueue,
66+
}))
67+
);
6368

6469
logger.info("Backfilled runs", { runs });
6570

apps/webapp/app/services/runsBackfiller.server.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ export class RunsBackfillerService {
7373
lastCreatedAt: runs[runs.length - 1].createdAt,
7474
});
7575

76-
await this.runsReplicationInstance.backfill(runs);
76+
await this.runsReplicationInstance.backfill(
77+
runs.map((run) => ({
78+
...run,
79+
masterQueue: run.workerQueue,
80+
}))
81+
);
7782

7883
const lastRun = runs[runs.length - 1];
7984

0 commit comments

Comments
 (0)