From 3a783739876eba4521330dd05334d3ed08445d94 Mon Sep 17 00:00:00 2001 From: Mickey Nasriachi Date: Mon, 30 Sep 2024 18:58:18 +0200 Subject: [PATCH] Added restart script --- bin/restart.pl | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 bin/restart.pl diff --git a/bin/restart.pl b/bin/restart.pl new file mode 100644 index 0000000..1a7179b --- /dev/null +++ b/bin/restart.pl @@ -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