auction site, processing at auctions end time

12 views
Skip to first unread message

fugee ohu

unread,
Mar 28, 2018, 2:56:49 PM3/28/18
to Ruby on Rails: Talk
What magic is supposed to handle processing at the time an auction ends?

Walter Lee Davis

unread,
Mar 28, 2018, 3:01:53 PM3/28/18
to rubyonra...@googlegroups.com
It's your app. You bring the magic. This could be something stupid-simple, like every 5 seconds a Cron job hits `rails runner -e production 'Auction.handle_finished'`.

No matter what it is, you will have written it. There's nothing magical that happens in Rails that knows when a particular time has passed unless you wake it up and ask it (and write something to handle that case).

Walter

> On Mar 28, 2018, at 2:56 PM, fugee ohu <fuge...@gmail.com> wrote:
>
> What magic is supposed to handle processing at the time an auction ends?
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9912afef-13c9-403f-b41d-ff8486de2ad8%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages