Re: [akka-user] akka scheduler with long delays

2014-07-28 Thread Konrad 'ktoso' Malawski
Hello Greg,
This question is basically the same as last week: 
https://groups.google.com/forum/#!topicsearchin/akka-user/combining$20Akka$20Persistence$20with$20Akka$20Scheduling/akka-user/CLRF6LP2G18

Suggestions have not changed since then :-)
Try akka-quartz-scheduler or write a large scheduling system on your own.
Not liking quartz shouldn’t really be the reason of avoiding a library that 
solves the problem you need to be solved… :-)

—  k
On 28 July 2014 at 04:05:55, Greg Flanagan (ventis...@gmail.com) wrote:

I'm building a reporting backend where users can schedule a report to be run 
weeks / months in advanced. I've used Quartz in the past for this kind of 
things but my use case isn't that complex and I think I can get away with just 
using the akka scheduler (plus I just don't like Quartz and would like to avoid 
the dependency if I can). My only requirement is that the user gives me a date 
time instant that they want the report to run, so I can easily figure out the 
delay to give the akka scheduler in seconds. Also I don't need need any 
guarantees about the report running at exactly the correct instant, it could be 
off by even an hour and I would be fine. My concerns are if the akka scheduler 
can even handle scheduling something this far in advanced, I imagine that it 
has a hard limit on whatever the max integer is. Also, I'm not sure what the 
best approach would be to handle jvm restarts or crashes. In this case I would 
need to have some sort of persistence so that the scheduler could be restarted. 
Is this something that akka persistence could help me with or have to roll 
something myself?

Cheers,
Greg
--
 Read the docs: http://akka.io/docs/
 Check the FAQ: 
 http://doc.akka.io/docs/akka/current/additional/faq.html
 Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups Akka 
User List group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
-- 
Konrad 'ktoso' Malawski
hAkker @ typesafe
http://akka.io

-- 
  Read the docs: http://akka.io/docs/
  Check the FAQ: 
 http://doc.akka.io/docs/akka/current/additional/faq.html
  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups Akka 
User List group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] akka scheduler with long delays

2014-07-28 Thread Greg Flanagan
you're right, my dislike for quartz should cloud my judgement. sorry for 
the double post :)

On Monday, July 28, 2014 3:59:02 AM UTC-7, Konrad Malawski wrote:

 Hello Greg,
 This question is basically the same as last week: 
 https://groups.google.com/forum/#!topicsearchin/akka-user/combining$20Akka$20Persistence$20with$20Akka$20Scheduling/akka-user/CLRF6LP2G18

 Suggestions have not changed since then :-)
 Try akka-quartz-scheduler or write a large scheduling system on your own.
 Not liking quartz shouldn’t really be the reason of avoiding a library 
 that solves the problem you need to be solved… :-)

 —  k

 On 28 July 2014 at 04:05:55, Greg Flanagan (vent...@gmail.com 
 javascript:) wrote:
  I'm building a reporting backend where users can schedule a report to be 
 run weeks / months in advanced. I've used Quartz in the past for this kind 
 of things but my use case isn't that complex and I think I can get away 
 with just using the akka scheduler (plus I just don't like Quartz and would 
 like to avoid the dependency if I can). My only requirement is that the 
 user gives me a date time instant that they want the report to run, so I 
 can easily figure out the delay to give the akka scheduler in seconds. Also 
 I don't need need any guarantees about the report running at exactly the 
 correct instant, it could be off by even an hour and I would be fine. My 
 concerns are if the akka scheduler can even handle scheduling something 
 this far in advanced, I imagine that it has a hard limit on whatever the 
 max integer is. Also, I'm not sure what the best approach would be to 
 handle jvm restarts or crashes. In this case I would need to have some sort 
 of persistence so that the scheduler could be restarted. Is this something 
 that akka persistence could help me with or have to roll something myself?

 Cheers,
 Greg
 --
  Read the docs: http://akka.io/docs/
  Check the FAQ: 
 http://doc.akka.io/docs/akka/current/additional/faq.html
  Search the archives: https://groups.google.com/group/akka-user
 ---
 You received this message because you are subscribed to the Google Groups 
 Akka User List group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to akka-user+...@googlegroups.com javascript:.
 To post to this group, send email to akka...@googlegroups.com 
 javascript:.
 Visit this group at http://groups.google.com/group/akka-user.
 For more options, visit https://groups.google.com/d/optout.
  -- 
 Konrad 'ktoso' Malawski
 hAkker @ typesafe
 http://akka.io


-- 
  Read the docs: http://akka.io/docs/
  Check the FAQ: 
 http://doc.akka.io/docs/akka/current/additional/faq.html
  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups Akka 
User List group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


[akka-user] akka scheduler with long delays

2014-07-27 Thread Greg Flanagan
I'm building a reporting backend where users can schedule a report to be 
run weeks / months in advanced. I've used Quartz in the past for this kind 
of things but my use case isn't that complex and I think I can get away 
with just using the akka scheduler (plus I just don't like Quartz and would 
like to avoid the dependency if I can). My only requirement is that the 
user gives me a date time instant that they want the report to run, so I 
can easily figure out the delay to give the akka scheduler in seconds. Also 
I don't need need any guarantees about the report running at exactly the 
correct instant, it could be off by even an hour and I would be fine. My 
concerns are if the akka scheduler can even handle scheduling something 
this far in advanced, I imagine that it has a hard limit on whatever the 
max integer is. Also, I'm not sure what the best approach would be to 
handle jvm restarts or crashes. In this case I would need to have some sort 
of persistence so that the scheduler could be restarted. Is this something 
that akka persistence could help me with or have to roll something myself?

Cheers,
Greg

-- 
  Read the docs: http://akka.io/docs/
  Check the FAQ: 
 http://doc.akka.io/docs/akka/current/additional/faq.html
  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups Akka 
User List group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.