forked from CESNET/perun
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Suspending propagating tasks to engine
- From CLI allows stopping sending waiting tasks to the engine - Added to OpenAPI
- Loading branch information
Johana Supíková
committed
Mar 30, 2021
1 parent
eafaf5c
commit 461299d
Showing
11 changed files
with
186 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/perl | ||
|
||
use strict; | ||
use warnings; | ||
use Getopt::Long qw(:config no_ignore_case); | ||
use Perun::Agent; | ||
use Perun::Common qw(printMessage); | ||
|
||
sub help { | ||
return qq{ | ||
Resumes tasks propagation to engine. | ||
-------------------------------------- | ||
Available options: | ||
--batch | -b batch | ||
--help | -h prints this help | ||
}; | ||
} | ||
|
||
my ($batch); | ||
GetOptions ("help|h" => sub { | ||
print help(); | ||
exit 0; | ||
}, "batch|b" => \$batch) || die help(); | ||
|
||
my $agent = Perun::Agent->new(); | ||
my $tasksAgent = $agent->getTasksAgent; | ||
|
||
$tasksAgent->resumeTasksPropagation(); | ||
|
||
printMessage("Tasks propagation resumed.", $batch); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/usr/bin/perl | ||
|
||
use strict; | ||
use warnings; | ||
use Getopt::Long qw(:config no_ignore_case); | ||
use Perun::Agent; | ||
use Perun::Common qw(printMessage); | ||
|
||
sub help { | ||
return qq{ | ||
Suspends tasks propagation to engine. | ||
-------------------------------------- | ||
Available options: | ||
--batch | -b batch | ||
--help | -h prints this help | ||
}; | ||
} | ||
|
||
my ($batch); | ||
GetOptions ("help|h" => sub { | ||
print help(); | ||
exit 0; | ||
}, "batch|b" => \$batch) || die help(); | ||
|
||
my $agent = Perun::Agent->new(); | ||
my $tasksAgent = $agent->getTasksAgent; | ||
|
||
$tasksAgent->suspendTasksPropagation(); | ||
|
||
printMessage("Tasks propagation is suspended.", $batch); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters