[erlang-questions] cron inside erlang

Robert Raschke rtrlists@REDACTED
Tue Apr 27 10:20:23 CEST 2010


On Tue, Apr 27, 2010 at 6:25 AM, Max Lapshin <max.lapshin@REDACTED> wrote:

> Hi, I have a problem: I need to receive message each minute. Jitter
> about 1 second is ok,
> but I need a strict warranty, that there will be 86400 messages per day.
>
> Thus I'm afraid that simple timer:send_interval can be not-monotonic,
> because it can do following:
>
> Pid ! Message
> receive
> after
>  Timeout -> repeat
> end
>
> Will send_interval fit my needs, or I have to make own mechanism with
> synchronization from wall_clock?
>
>
Not sure I understand the "receive message each minute". Do you want to
essentially limit your reception capacity to one per minute? Or did you mean
"send one message every minute"?

It might be that crone (http://catseye.tc/projects/crone/) could help you
with the wall clock side of things.

Robby


More information about the erlang-questions mailing list