On Fri, Oct 30, 2009 at 12:05 AM, Stefan Arentz <ste...@arentz.ca> wrote:
> What is a good and simple way to run periodic tasks in Clojure? I need > to run a simple function every couple of minutes. And make sure that > if it throws an exception that it won't kill the periodic task. > > I come from a Spring world where XML, Timers, Jobs and Quartz rule the > world, so am hoping for something small and elegant for Closure :-) > See http://groups.google.com/group/clojure/browse_thread/thread/5b197faf820ab77c/ or another recent thread about "actors". You'll need to wrap your function body in (try ... (catch Throwable _ xxx)) to halt exceptions. (The "xxx" can be any logging action you want to take, or nothing.) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---