Disable jobset deletion
This is a good way to make Hydra hang. (E.g. we had a deletion of nixos:gcc-7 running for > 12 hours and blocking UPDATE statements from hydra-queue-runner.) Generally it's better to just disable/hide an old jobset anyway.
This commit is contained in:
@ -92,7 +92,9 @@ sub jobset_PUT {
|
||||
sub jobset_DELETE {
|
||||
my ($self, $c) = @_;
|
||||
|
||||
requireProjectOwner($c, $c->stash->{project});
|
||||
#requireProjectOwner($c, $c->stash->{project});
|
||||
|
||||
requireAdmin($c);
|
||||
|
||||
if (length($c->stash->{project}->declfile)) {
|
||||
error($c, "can't modify jobset of declarative project", 403);
|
||||
|
Reference in New Issue
Block a user