Skip to content

Commit

Permalink
Revert "[keyserver] cron job to sync reserved usernames"
Browse files Browse the repository at this point in the history
This reverts commit 9a75d88.
  • Loading branch information
vdhanan committed Jul 4, 2023
1 parent 9a75d88 commit 897c86f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 46 deletions.
16 changes: 1 addition & 15 deletions keyserver/src/cron/cron.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import schedule from 'node-schedule';
import { backupDB } from './backups.js';
import { createDailyUpdatesThread } from './daily-updates.js';
import { updateAndReloadGeoipDB } from './update-geoip-db.js';
import { updateIdentityReservedUsernames } from './update-identity-reserved-usernames.js';
import { deleteOrphanedActivity } from '../deleters/activity-deleters.js';
import { deleteExpiredCookies } from '../deleters/cookie-deleters.js';
import { deleteOrphanedDays } from '../deleters/day-deleters.js';
Expand Down Expand Up @@ -93,20 +92,7 @@ if (cluster.isMaster) {
}
},
);
schedule.scheduleJob(
'0 5 * * *', // every day at 5:00 AM in the keyserver's timezone
async () => {
try {
await updateIdentityReservedUsernames();
} catch (e) {
console.warn(
'encountered error while trying to update reserved usernames on ' +
'identity service',
e,
);
}
},
);

schedule.scheduleJob(
'0 0 * * *', // every day at midnight in the keyserver's timezone
async () => {
Expand Down
31 changes: 0 additions & 31 deletions keyserver/src/cron/update-identity-reserved-usernames.js

This file was deleted.

0 comments on commit 897c86f

Please sign in to comment.