do not accept job queue entries for demo hosting
This commit is contained in:
6
Changes
6
Changes
@@ -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
|
2.051004 - 2021-11-25
|
||||||
|
|
||||||
[BUG FIXES]
|
[BUG FIXES]
|
||||||
|
|||||||
@@ -321,8 +321,11 @@ sub jq_userlog {
|
|||||||
sub jq_insert {
|
sub jq_insert {
|
||||||
my $jobs = shift;
|
my $jobs = shift;
|
||||||
$jobs = [$jobs] if ref [] ne ref $jobs;
|
$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 {
|
try {
|
||||||
schema('netdisco')->txn_do(sub {
|
schema('netdisco')->txn_do(sub {
|
||||||
schema('netdisco')->resultset('Admin')->populate([
|
schema('netdisco')->resultset('Admin')->populate([
|
||||||
|
|||||||
Reference in New Issue
Block a user