Skip to content

Commit

Permalink
update timings and set dryrun to false on cron (#7542)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecsavvy authored Feb 9, 2024
1 parent 960c625 commit 3264c59
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ export const main = async () => {
.run()
}

// Friday at 12:05 pm PST, extra five minutes for trending to calculate
cron.schedule('5 12 * * 5', () => {
// Friday at 12:01 pm PST, extra five minutes for trending to calculate
cron.schedule('1 12 * * 5', () => {
initSharedData().then((data) => {
// make new appdata instance to satisfy types
const appData = new App<SharedData>({ appData: data })
appData.updateAppData((data) => {
data.dryRun = false
return data
})
announceTopFiveTrending(appData).catch(e => console.error("Announcement failed: ", e))
disburseTrendingRewards(appData).catch(e => console.error("Disbursment failed: ", e))
})
Expand Down

0 comments on commit 3264c59

Please sign in to comment.