Re: Tack scheduler

2018-04-17 Thread Luke Burton
There may be other games in town these days, but I've had some success with 
http://clojurequartz.info , although I think I 
ended up just using the Java Quartz library directly.

Folks will chime (heh) in and recommend libraries like at-at, chime, or tick. 
However, once your app starts causing side effects in the real world, you want 
a scheduling system that has the remaining 80% of features you need, like:

- persistent storage of jobs
- logging and monitoring
- pause and resume
- dependencies between jobs
- configurable retry policies

Based on your additional criteria, I'm aware of no other scheduling system that 
satisfies all that, other than Quartz. Would be happy to hear other's 
recommendations too though.

Luke.


> On Apr 17, 2018, at 2:34 PM, Brjánn Ljótsson  > wrote:
> 
> Hi,
> 
> I'm about to implementera a task scheduler in a Clojure web app. It should do 
> various tasks such as cleaning up temporary files, send e-mail reminders to 
> users, and flagging database entries based on rules. It is currently 
> implemented in a php script which runs as a Cron job and executes task 
> objects (one for each task) that inherit from a task superclass that has 
> methods such as initialize, execute, and finish. But now I want to implement 
> it using Clojure idioms. 
> 
> Are there good libraries/examples of
> - A scheduling function that executes a task runner every X minutes?
> - An abstract description of a task with methods and timeout rules?
> - An extensible task list that can prioritize tasks according to conditions 
> such as time of day, time since last run, or other arbitrary conditions?
> 
> Thanks,
> Brjánn Ljótsson
> 
> -- 
> 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
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Tack scheduler

2018-04-17 Thread Brjánn Ljótsson
Hi,

I'm about to implementera a task scheduler in a Clojure web app. It should do 
various tasks such as cleaning up temporary files, send e-mail reminders to 
users, and flagging database entries based on rules. It is currently 
implemented in a php script which runs as a Cron job and executes task objects 
(one for each task) that inherit from a task superclass that has methods such 
as initialize, execute, and finish. But now I want to implement it using 
Clojure idioms. 

Are there good libraries/examples of
- A scheduling function that executes a task runner every X minutes?
- An abstract description of a task with methods and timeout rules?
- An extensible task list that can prioritize tasks according to conditions 
such as time of day, time since last run, or other arbitrary conditions?

Thanks,
Brjánn Ljótsson

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.