Re: [Mojolicious] Mojolicious - minion worker doesn't start automatically

2018-12-15 Thread sri

>
> On a maybe related-ish note, it would also be great if there was a way for 
> a Mojolicious app (or maybe Minion job) to do recurring tasks (think cron) 
> -- for example, purge a cache every hour on the hour or something...  I 
> think this was talked about regarding Minion a while back.  It would make 
> sense for Minion to handle the jobs, and of course the Mojolicious app 
> would need to be able to queue the job at a specific time via the Minion 
> plugin.  I haven't been able to do it because my task always ends up 
> getting scheduled by all of the forked workers.
>

A cron feature has been talked about for Minion. But i'm afraid we decided 
against it,
because a) you can now just use cron to enqueue unique jobs for you, and b) 
given
the distributed nature of Minion, implementing a cron that actually works 
is really
really hard.

--
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 mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


Re: [Mojolicious] Mojolicious - minion worker doesn't start automatically

2018-12-15 Thread Stefan Adams
OH MY GOSH PLEASE!!  :D

On a maybe related-ish note, it would also be great if there was a way for
a Mojolicious app (or maybe Minion job) to do recurring tasks (think cron)
-- for example, purge a cache every hour on the hour or something...  I
think this was talked about regarding Minion a while back.  It would make
sense for Minion to handle the jobs, and of course the Mojolicious app
would need to be able to queue the job at a specific time via the Minion
plugin.  I haven't been able to do it because my task always ends up
getting scheduled by all of the forked workers.

On Sat, Dec 15, 2018 at 11:45 AM sri  wrote:

> This is a planned feature.
>
> https://github.com/mojolicious/minion/issues/76
>
> --
> 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 mojolicious+unsubscr...@googlegroups.com.
> To post to this group, send email to mojolicious@googlegroups.com.
> Visit this group at https://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


Re: [Mojolicious] Mojolicious - minion worker doesn't start automatically

2018-12-15 Thread sri
This is a planned feature.

https://github.com/mojolicious/minion/issues/76

--
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 mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


Re: [Mojolicious] Mojolicious - minion worker doesn't start automatically

2018-12-15 Thread Sachin Dangol
Thanks Stefan for clarifying.

I was thinking Minion can just be kept running automatically as long as web
app is running.

At work I am running minion manually and making sure it runs always. I was
thinking is it how experts do or any better ways I am missing.

Now I am clear. Thanks again.

On Saturday, December 15, 2018, Stefan Adams  wrote:

> Sachin, you said you haven't gotten any answer, but I see you and Corion
> had an exchange on SO some time earlier than this email.  Grinnz has since
> added a little extra as well.  What is currently commented on the
> Stackoverflow question between Corion and Grinnz looks like the appropriate
> response to me.  Is there anything else you are still needing help with?
>
> On Fri, Dec 14, 2018 at 9:12 PM Sachin Dangol 
> wrote:
>
>> I have asked this question on stackoverflow. Haven't got any answer.
>> Asking it here. Please help. I think I am missing something fundamental
>> here.
>>
>> 
>> https://stackoverflow.com/questions/53774276/mojolicious-minion-worker-
>> doesnt-start-automatically
>>
>> --
>> 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 mojolicious+unsubscr...@googlegroups.com.
>> To post to this group, send email to mojolicious@googlegroups.com.
>> Visit this group at https://groups.google.com/group/mojolicious.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mojolicious" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/mojolicious/uN-qgrr7g0s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mojolicious+unsubscr...@googlegroups.com.
> To post to this group, send email to mojolicious@googlegroups.com.
> Visit this group at https://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
thanks,
Sachin Dangol
+65 98123139
  

-- 
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 mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


Re: [Mojolicious] Mojolicious - minion worker doesn't start automatically

2018-12-14 Thread Stefan Adams
Sachin, you said you haven't gotten any answer, but I see you and Corion
had an exchange on SO some time earlier than this email.  Grinnz has since
added a little extra as well.  What is currently commented on the
Stackoverflow question between Corion and Grinnz looks like the appropriate
response to me.  Is there anything else you are still needing help with?

On Fri, Dec 14, 2018 at 9:12 PM Sachin Dangol 
wrote:

> I have asked this question on stackoverflow. Haven't got any answer.
> Asking it here. Please help. I think I am missing something fundamental
> here.
>
> 
>
> https://stackoverflow.com/questions/53774276/mojolicious-minion-worker-doesnt-start-automatically
>
> --
> 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 mojolicious+unsubscr...@googlegroups.com.
> To post to this group, send email to mojolicious@googlegroups.com.
> Visit this group at https://groups.google.com/group/mojolicious.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


[Mojolicious] Mojolicious - minion worker doesn't start automatically

2018-12-14 Thread Sachin Dangol
I have asked this question on stackoverflow. Haven't got any answer. Asking 
it here. Please help. I think I am missing something fundamental here.


https://stackoverflow.com/questions/53774276/mojolicious-minion-worker-doesnt-start-automatically

-- 
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 mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.