On 7/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Do You have any idea how could I solve that?

There is a Schedulable module in 'openwfe/utils/scheduler'.

You could do something like :

---8<---
# somewhere (maybe outside of the controller) :

require 'openwfe/utils/scheduler'

class NotificationSchedule
  include Schedulable

  def trigger (params)
    NotifMailer.deliver_notify("praca skonczona", rand(100))
  end

  def reschedule (scheduler)
    # ignore
  end
end

# in the controller :

$scheduler.schedule_in "10s", :schedulable => NotificationSchedule.new
--->8---

Maybe this would work.


-- 
John Mettraux   -///-   http://jmettraux.openwfe.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenWFEru users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwferu-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to