Memorandums, Logbook & Shares
Friday, August 17, 2012
Running delayed job in Rails
Example:
Normal run:
SomeModule.some_function()
Delayed job run:
SomeModule.
delay
.some_function()
or specify when to run:
SomeModule.
delay(:run_at => Time.now + 1.hours)
.some_function()
Yes, it's that simple!!
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.