# A general implemetation question

**URL:** <https://www.ruby-forum.com/t/a-general-implemetation-question/140452>\
**Category:** Rails\
**Created:** [June 14, 2008, 7:57am UTC](https://www.ruby-forum.com/t/a-general-implemetation-question/140452 "2008-06-14T07:57:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [June 14, 2008, 7:57am UTC](https://www.ruby-forum.com/t/a-general-implemetation-question/140452/1 "2008-06-14T07:57:44Z")

</div>

Hi  
I am asking a general implementation question…I have two models  
ServiceDeskTicket and ServiceDeskActivity.The service\_desk\_tickets table  
has an updated\_on field(one of magic field supplied by rails) which  
carries the latest updated on time for the ticket.This field is updated  
two ways  
1.When updating a servicedesk ticket  
2.when a new activity is added.  
I have to implement the following…If a service desk  
ticket is inactive for 48 hours (inactive means if the update\_on is  
greater than 48 hours) then send a mail (to primary assignee of group).  
Which is the best way to implement this?I have a basic  
idea that tom write a rake task and call it with a cronjob.(Am I  
right?).But how?Suppose there are some thousands of service desk tickets  
…So how to ensure mail send with in 48 hours for each of them if  
inactive?  
Please help me to solve this problem  
Expecting your valuable comments

Sijo

---

<div class="post-metadata">

**Author:** ![sijo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/da6949/32.png) [@sijo](https://www.ruby-forum.com/u/sijo)\
**Post date:** [June 14, 2008, 11:43pm UTC](https://www.ruby-forum.com/t/a-general-implemetation-question/140452/2 "2008-06-14T23:43:38Z")

</div>

I think you’re on the right track with a rake task and cron.

To send large amount of emails, google ar\_mailer
