Remove Daemon's job queue DBIC schema from user config

This commit is contained in:
Oliver Gorwits
2013-02-24 01:00:34 +00:00
parent 7ed6c86020
commit 4b7543b945
5 changed files with 12 additions and 19 deletions

View File

@@ -3,6 +3,7 @@
[ENHANCEMENTS] [ENHANCEMENTS]
* random() and LIMIT the number of daemon jobs requested from Netdisco queue * 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 2.005000_002 - 2013-02-10

View File

@@ -8,6 +8,17 @@ our @EXPORT = ();
our @EXPORT_OK = qw/ add_jobs capacity_for take_jobs reset_jobs /; our @EXPORT_OK = qw/ add_jobs capacity_for take_jobs reset_jobs /;
our %EXPORT_TAGS = ( all => \@EXPORT_OK ); 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; schema('daemon')->deploy;
my $queue = schema('daemon')->resultset('Admin'); my $queue = schema('daemon')->resultset('Admin');

View File

@@ -29,15 +29,6 @@ plugins:
options: options:
RaiseError: 1 RaiseError: 1
AutoCommit: 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 # uncomment and set to 1 to disable authentication/login
no_auth: 1 no_auth: 1

View File

@@ -27,15 +27,6 @@ plugins:
options: options:
RaiseError: 1 RaiseError: 1
AutoCommit: 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 # uncomment and set to 1 to disable authentication/login
# no_auth: 0 # no_auth: 0

1
TODO
View File

@@ -21,7 +21,6 @@ DAEMON
* poller daemon (scheduling automatically?) * poller daemon (scheduling automatically?)
- plugins for poller - plugins for poller
* Daemon schema auto-set (not in config)
* logging from daemon * logging from daemon
CORE CORE