Spaces:
Sleeping
Sleeping
File size: 726 Bytes
097eaf0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | import { logger as _logger } from "../../../lib/logger";
import { Request, Response } from "express";
import { reconcileConcurrencyQueue } from "../../../lib/concurrency-queue-reconciler";
export async function concurrencyQueueBackfillController(
req: Request,
res: Response,
) {
const logger = _logger.child({
module: "concurrencyQueueBackfillController",
});
logger.info("Starting concurrency queue backfill");
const teamId =
typeof req.query.teamId === "string"
? (req.query.teamId as string)
: undefined;
const summary = await reconcileConcurrencyQueue({
teamId,
logger,
});
logger.info("Finished backfilling all teams", summary);
res.json({ ok: true, ...summary });
}
|