Skip to content

Commit

Permalink
adjust to work with this type of cron
Browse files Browse the repository at this point in the history
  • Loading branch information
CassOnMars committed Sep 6, 2024
1 parent c8e3c78 commit 2c708cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/hubble/src/hubble.ts
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ export class Hub implements HubInterface {
this.validateOrRevokeMessagesJobScheduler.start();

const randomMinute = Math.floor(Math.random() * 15);
this.gossipContactInfoJobScheduler.start(`${randomMinute}/15 * * * *`); // Random minute every 30 minutes
this.gossipContactInfoJobScheduler.start(`${randomMinute}-59/15 * * * *`); // Weird syntax but required by cron, random minute every 15 minutes
this.checkIncomingPortsJobScheduler.start();
this.measureSyncHealthJobScheduler.start();

Expand Down

0 comments on commit 2c708cf

Please sign in to comment.