>
> 33 $self->app->minion->on(worker => sub {
>
Calling $self->app does nothing else than waste CPU, your $self is already
the app.
The first thing I noticed, is that the worker->id in my "on worker" event
> is always undef when I start a worker
> using ./script/my_app minion worker.
>
Because the worker event gets emitted before the worker has registered
itself.
They only get executed, if I run a $self->app->minion->perform_jobs;
>
That's a good sign, it means the worker basically works.
Any hint why this is happening or am I doing something completely wrong (or
> is my assumption, that jobs
> are automatically worked on) wrong at all?
>
Odds are you are doing something completely wrong, but it is not mentioned
here, like using an entirely different app for starting the worker.
--
sebastian
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.