change stage to phase

This commit is contained in:
Oliver Gorwits
2017-10-07 09:42:41 +01:00
parent 256c10bae5
commit 273cbbc11b
40 changed files with 58 additions and 58 deletions

View File

@@ -6,13 +6,13 @@ use aliased 'App::Netdisco::Worker::Status';
use Dancer::Plugin::DBIC 'schema';
register_worker({ stage => 'check' }, sub {
register_worker({ phase => 'check' }, sub {
return Status->error('Missing device (-d).')
unless defined shift->device;
return Status->done('ExpireNodes is able to run');
});
register_worker({ stage => 'main' }, sub {
register_worker({ phase => 'main' }, sub {
my ($job, $workerconf) = @_;
schema('netdisco')->txn_do(sub {