Skip to content

Commit

Permalink
Remove test schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
gastonfournier committed Apr 10, 2024
1 parent daa3c39 commit 65b7080
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/lib/features/scheduler/schedule-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,6 @@ export const scheduleServices = async (
'cleanLastSeen',
);

const uploadToS3JobName = 'uploadToS3';
schedulerService.schedule(
jobService.singleInstance(
uploadToS3JobName,
async (range: { from: Date; to: Date }) => {
console.log(`Range: ${range}`);
return `${range.from.toISOString()} to ${range.to.toISOString()}`;
},
5, // 5 minutes bucket size
),
minutesToMilliseconds(3), // every 3 minutes (to make sure we don't miss any bucket)
uploadToS3JobName,
);

schedulerService.schedule(
lastSeenService.store.bind(lastSeenService),
secondsToMilliseconds(30),
Expand Down

0 comments on commit 65b7080

Please sign in to comment.