ANN: crone - cron in Erlang (sort of)
Chris Pressey
cpressey@REDACTED
Thu Jul 4 20:02:04 CEST 2002
On Thu, 4 Jul 2002 13:53:10 +0100
Sean Hinde <Sean.Hinde@REDACTED> wrote:
> Well, here's one I wrote earlier.
>
> The API is unfinished (stuck somewhat between two methods) but it does
> seem to work well enough.
>
> This one sends a tick to itself every minute and does any jobs which are
> scheduled at that time. There are some (slightly incorrect) docs in the
> code
>
> You can also have a job run at startup which returns a state which is
> passed through future invocations.
>
> Someone might find it useful.. cron.conf is in the priv dir
>
> Sean
Heh... I suppose I could have asked on the list as part of my searching.
But, I also wanted to see what a scheduler would be like written in 'the
Erlang style'. This applies to Vlad's design question as well - I've
found that having one process per real-world concurrent task is generally
preferable to being conservative about the number of processes. Erlang
can handle a really phenomenal number of processes, by design. Also, it
usually results in code that's easier to understand and maintain.
-Chris
More information about the erlang-questions
mailing list