Remove Daemon's job queue DBIC schema from user config
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
[ENHANCEMENTS]
|
||||
|
||||
* random() and LIMIT the number of daemon jobs requested from Netdisco queue
|
||||
* Remove Daemon's job queue DBIC schema from user config
|
||||
|
||||
2.005000_002 - 2013-02-10
|
||||
|
||||
|
||||
@@ -8,6 +8,17 @@ our @EXPORT = ();
|
||||
our @EXPORT_OK = qw/ add_jobs capacity_for take_jobs reset_jobs /;
|
||||
our %EXPORT_TAGS = ( all => \@EXPORT_OK );
|
||||
|
||||
# static configuration for the in-memory local job queue
|
||||
setting('plugins')->{DBIC}->{daemon} = {
|
||||
dsn => 'dbi:SQLite:dbname=:memory:',
|
||||
options => {
|
||||
AutoCommit => 1,
|
||||
RaiseError => 1,
|
||||
sqlite_use_immediate_transaction => 1,
|
||||
},
|
||||
schema_class => 'App::Netdisco::Daemon::DB',
|
||||
};
|
||||
|
||||
schema('daemon')->deploy;
|
||||
my $queue = schema('daemon')->resultset('Admin');
|
||||
|
||||
|
||||
@@ -29,15 +29,6 @@ plugins:
|
||||
options:
|
||||
RaiseError: 1
|
||||
AutoCommit: 1
|
||||
# please do not change/remove this schema unless you
|
||||
# know what you are doing!
|
||||
daemon:
|
||||
schema_class: 'App::Netdisco::Daemon::DB'
|
||||
dsn: 'dbi:SQLite:dbname=:memory:'
|
||||
options:
|
||||
RaiseError: 1
|
||||
AutoCommit: 1
|
||||
sqlite_use_immediate_transaction: 1
|
||||
|
||||
# uncomment and set to 1 to disable authentication/login
|
||||
no_auth: 1
|
||||
|
||||
@@ -27,15 +27,6 @@ plugins:
|
||||
options:
|
||||
RaiseError: 1
|
||||
AutoCommit: 1
|
||||
# please do not change/remove this schema unless you
|
||||
# know what you are doing!
|
||||
daemon:
|
||||
schema_class: 'App::Netdisco::Daemon::DB'
|
||||
dsn: 'dbi:SQLite:dbname=:memory:'
|
||||
options:
|
||||
RaiseError: 1
|
||||
AutoCommit: 1
|
||||
sqlite_use_immediate_transaction: 1
|
||||
|
||||
# uncomment and set to 1 to disable authentication/login
|
||||
# no_auth: 0
|
||||
|
||||
Reference in New Issue
Block a user