Skip to content

Commit

Permalink
[IM] Send an alert email on failure - final piece to close #877
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Jan 27, 2025
1 parent 8d697a9 commit 6a0dbc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ protected function schedule( Schedule $schedule ): void

// IRRDB - https://docs.ixpmanager.org/latest/features/irrdb/
if( config( 'ixp.irrdb.bgpq3.path' ) && is_executable( config( 'ixp.irrdb.bgpq3.path' ) ) ) {
$schedule->command( 'irrdb:update-prefix-db' )->cron( '7 */6 * * *' )
$schedule->command( 'irrdb:update-prefix-db --alert-email' )->cron( '7 */6 * * *' )
->skip( function() { return env( 'TASK_SCHEDULER_SKIP_IRRDB_UPDATE_PREFIX_DB', false ); } );

$schedule->command( 'irrdb:update-asn-db' )->cron( '37 */6 * * *' )
$schedule->command( 'irrdb:update-asn-db --alert-email' )->cron( '37 */6 * * *' )
->skip( function() { return env( 'TASK_SCHEDULER_SKIP_IRRDB_UPDATE_ASN_DB', false ); } );
}

Expand Down

0 comments on commit 6a0dbc3

Please sign in to comment.