MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / bootCron

Function bootCron

apps/worker/src/boot-cron.ts:30–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30export async function bootCron() {
31 const jobs: {
32 name: string;
33 type: CronQueueType;
34 pattern: string | number;
35 }[] = [
36 {
37 name: 'salt',
38 type: 'salt',
39 pattern: '0 0 * * *',
40 },
41 {
42 name: 'delete',
43 type: 'delete',
44 pattern: '0 * * * *',
45 },
46 {
47 name: 'flush',
48 type: 'flushEvents',
49 pattern: 1000 * 10,
50 },
51 {
52 name: 'flush',
53 type: 'flushProfiles',
54 pattern: 1000 * 10,
55 },
56 {
57 name: 'flush',
58 type: 'flushSessions',
59 pattern: 1000 * 10,
60 },
61 {
62 name: 'flush',
63 type: 'flushProfileBackfill',
64 pattern: 1000 * 30,
65 },
66 {
67 name: 'flush',
68 type: 'flushReplay',
69 pattern: 1000 * 10,
70 },
71 {
72 name: 'flush',
73 type: 'flushGroups',
74 pattern: 1000 * 10,
75 },
76 {
77 name: 'insightsDaily',
78 type: 'insightsDaily',
79 pattern: '0 2 * * *',
80 },
81 {
82 name: 'onboarding',
83 type: 'onboarding',
84 pattern: '0 * * * *',
85 },
86 {
87 name: 'gscSync',

Callers 1

startFunction · 0.90

Calls 8

removeConflictingJobsFunction · 0.85
infoMethod · 0.80
hasMethod · 0.80
pushMethod · 0.45
mapMethod · 0.45
catchMethod · 0.45
errorMethod · 0.45
warnMethod · 0.45

Tested by

no test coverage detected