Job steps (bots_queue_updates) only feed the live working row, so the new clear-job-steps cron deletes them shortly after a job ends, however it ended, keeping their count on bots_queue.steps for the message details. Not done the moment a job ends: the live relay would miss the last ones. Co-Authored-By: Claude Opus 5.5 <[email protected]>
9 lines
276 B
TypeScript
9 lines
276 B
TypeScript
import clearFinishedJobSteps from "@/src/functions/backend/db/bots-queue/clear-finished-job-steps";
|
|
|
|
/**
|
|
* Clears the steps of jobs that have ended (`clearFinishedJobSteps`).
|
|
*/
|
|
export default async function cronClearJobSteps() {
|
|
return await clearFinishedJobSteps();
|
|
}
|