Patches: Browse | Submit New | Admin

[#14722] valid_at parameter which allows to schedue message handling

Date:
2007-10-15 08:03
Priority:
4
Submitted By:
Pawel Krzesniak (imo)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
valid_at parameter which allows to schedue message handling

Detailed description
I added optional field messages which allows to handle specific action not before given timestamp. Such functionality
allows to schedule some actions in the future, which could be nice feature.

If valid_at parameter is not given ap4r process message immediately, which is old behaviour.

example usage:
ap4r.async_to({:action => :test}, {:id => 123}, {:valid_at => Time.now.to_i + 3, :priority => 1})

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-01-09 13:58
Sender: shunichi shinohara

Nice extention!
The Selector is one of useful features of reliable-msg, so I
want to take advantage of that.

I am anxious about the case that:
  large number of messages in a queue, and
  those are "not-valid-yet".
For example, messages those should be processed at midnight.

I parhaps should consider some kind of scheduling.

Attached Files:

Name Description Download
valid_at.patch Download

Changes:

Field Old Value Date By
resolution_idNone2008-01-09 13:58shino
priority32008-01-09 13:58shino
File Added2660: valid_at.patch2007-10-15 08:03imo