do not accept job queue entries for demo hosting

This commit is contained in:
Oliver Gorwits
2021-11-25 20:16:23 +00:00
parent 95f7fb618f
commit ac6308661a
2 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2.051005 - 2021-11-25
[ENHANCEMENTS]
* do not accept any job queue entries for demo hosting
2.051004 - 2021-11-25
[BUG FIXES]

View File

@@ -321,8 +321,11 @@ sub jq_userlog {
sub jq_insert {
my $jobs = shift;
$jobs = [$jobs] if ref [] ne ref $jobs;
my $happy = false;
# bit of a hack for heroku hosting to avoid DB overload
return true if setting('defanged_admin') eq 'false_admin';
my $happy = false;
try {
schema('netdisco')->txn_do(sub {
schema('netdisco')->resultset('Admin')->populate([