Skip to content

Commit

Permalink
Merge pull request #32 from metacpan/mickey/restart
Browse files Browse the repository at this point in the history
Added restart script
  • Loading branch information
mickeyn authored Sep 30, 2024
2 parents 795d113 + 3a78373 commit b52930b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions bin/restart.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
use strict;
use warnings;
use v5.36;

use MetaCPAN::Logger qw< :log :dlog >;

use MetaCPAN::ES;

# setup
my $es = MetaCPAN::ES->new();

$es->restart( delay => '5s' );

log_info {'Done'};

1;

__END__
=pod
=head1 SYNOPSIS
# bin/restart
=head1 DESCRIPTION
kick the ES cluster
=cut

0 comments on commit b52930b

Please sign in to comment.