Skip to content

Commit a669d47

Browse files
committed
Add task scheduler to run full mutation weekly
1 parent 7da515d commit a669d47

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/backend/src/plugins/catalog.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ export default async function createPlugin(
4545
// before incremental builder migrations are executed
4646
// await incrementalBuilder.build();
4747

48+
await env.scheduler.scheduleTask({
49+
id: "test-task-scheduler",
50+
frequency: { cron: '0 0 * * 7' },
51+
timeout: { minutes: 10 },
52+
fn: async () => await sourcegraphProvider.full(),
53+
});
54+
4855
await processingEngine.start();
4956

5057
return router;

0 commit comments

Comments
 (0)