Skip to content

Commit

Permalink
fix: get rate limited less
Browse files Browse the repository at this point in the history
  • Loading branch information
rutmanz committed Dec 22, 2024
1 parent bd5d838 commit 69cfba6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tasks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export function scheduleTasks() {
tasks['Announce Certs'] = scheduleTask(announceNewCerts, 60 * 60, isProd, 60) // Just in case the cert announcement isn't automatically run on changes
if (isProd) {
// This task affects workspace-wide groups, should not be run while testing if in the same workspace
tasks['Sync Departments'] = scheduleTask(updateSlackUsergroups, 60 * 60, isProd, 2 * 60)
tasks['Sync Teams'] = scheduleTask(updateProfileTeam, 60 * 60 * 24, true, 15 * 60)
tasks['Sync Departments'] = scheduleTask(updateSlackUsergroups, 60 * 60, true, 2 * 60)
tasks['Sync Teams'] = scheduleTask(updateProfileTeam, 60 * 60 * 24, false, 15 * 60)
}
tasks['Link Fallback Photos'] = createTaskFunc(syncFallbackPhotos)
tasks['Logout All'] = scheduleCronTask(createTaskFunc(logoutAll), '0 0 * * *')
Expand All @@ -72,8 +72,8 @@ export function scheduleTasks() {
scheduleCronTask(createTaskFunc(promptCheckinMessage), '0 15 * * FRI')
tasks['Sync Sheet'] = scheduleTask(updateSheet, 60 * 5, isProd, 0)
tasks['Sync Slack Members'] = scheduleTask(syncSlackMembers, 60 * 60, isProd, 0) // can be run from the admin members page
tasks['Update profile Certs'] = scheduleTask(updateProfileCerts, 60 * 60 * 24, isProd, 5 * 60)
tasks['Update Profile Departments'] = scheduleTask(updateProfileDepartments, 60 * 60 * 24, isProd, 10 * 60)
tasks['Update profile Certs'] = scheduleTask(updateProfileCerts, 60 * 60 * 24, false, 5 * 60)
tasks['Update Profile Departments'] = scheduleTask(updateProfileDepartments, 60 * 60 * 24, false, 10 * 60)
}

export async function runTask(key: string) {
Expand Down

0 comments on commit 69cfba6

Please sign in to comment.