[erlang-questions] Persistent processes
Gaspar Chilingarov
nm@REDACTED
Tue Jul 10 18:57:33 CEST 2007
We have added some persistence to our application processes by creating
fun (closure), which holds all necessary environment to continue
execution later and saving it to the mnesia. I've found that this was a
great opportunity to us to make our application delayed jobs management
much more simple than in other languages.
So we have implemented some generic module -- cron daemon, which takes
case of restarting processes after reboot and scheduling them for
periodic execution, which takes arguments like a fun, how often to run
process and how long keep the task, before throwing it away.
/Gaspar
--
Gaspar Chilingarov
System Administrator,
Network security consulting
t +37493 419763 (mob)
i 63174784
e nm@REDACTED
w http://zanazan.am/
More information about the erlang-questions
mailing list