Skip to content

Commit

Permalink
Update schedule to only run every 1 hr
Browse files Browse the repository at this point in the history
  • Loading branch information
navzam committed Aug 17, 2024
1 parent b54cf88 commit d9381b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ initializeApp();
const DELETION_THRESHOLD_MS = 2 * 24 * 60 * 60 * 1000; // 2 days
const QUERY_PAGE_SIZE = 100;

export const unconsentedUserCleanup = onSchedule("every 5 mins", async (event) => {
export const unconsentedUserCleanup = onSchedule("every 1 hour", async (event) => {
logger.info('Starting cleanup of unconsented users');

const firestore = getFirestore();
Expand Down

0 comments on commit d9381b2

Please sign in to comment.