cron officially works!!!
This commit is contained in:
parent
18e8de5856
commit
524ea87d36
4 changed files with 146 additions and 51 deletions
|
|
@ -110,18 +110,13 @@ sub new {
|
|||
name => 'Spectre',
|
||||
);
|
||||
POE::Session->create(
|
||||
object_states => [ $self => {_start=>"_start", _stop=>"_stop", "shutdown"=>"_stop","test"=>"test"} ],
|
||||
args=>[["shutdown","test"]]
|
||||
object_states => [ $self => {_start=>"_start", _stop=>"_stop", "shutdown"=>"_stop"} ],
|
||||
args=>[["shutdown"]]
|
||||
);
|
||||
$self->{_cron} = Spectre::Cron->new($config, $debug);
|
||||
$self->{_workflow} = Spectre::Workflow->new($config, $debug);
|
||||
$self->{_cron} = Spectre::Cron->new($config, $self->{_workflow}, $debug);
|
||||
POE::Kernel->run();
|
||||
}
|
||||
sub test {
|
||||
my $arg = $_[ARG1];
|
||||
use JSON;
|
||||
print objToJson($arg);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue