[erlang-questions] gen_cron question

db masterofquestions@REDACTED
Tue Mar 4 00:57:19 CET 2008


Paul,

On Mon, Mar 3, 2008 at 2:44 AM, Paul Mineiro <paul-trapexit@REDACTED>
wrote:

> Hey db,
>
> Each gen_cron instance is a single something that needs to run
> periodically and without overlap.


What do you mean when you say there is no overlap?  For example, I have
module_mneisa_purge and module_data_summary.  I need to run
module_mnesia_purge on every week/day on an interval.  In addition, I need
to run module_data_summary on every 24hrs.  Does this mean I can't run two
instance of gen_cron with two different modules?  Sooner or latter, both
gen_cron instances will fall on exact time-slot.

I know this won't be my last question on gen_cron ;)

-- 
rk

That which we persist in doing becomes easier for us to do; not that the
nature of the thing itself is changed, but that our power to do is
increased.
-Ralph Waldo Emerson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080303/c47f2743/attachment.htm>


More information about the erlang-questions mailing list