What magic is supposed to handle processing at the time an auction ends?
Walter Lee Davis
未讀,
2018年3月28日 下午3:01:532018/3/28
回覆作者
登入以回覆作者
轉寄
登入以轉寄訊息
刪除
你的權限不足,無法在這個群組刪除訊息
複製連結
檢舉訊息
登入以檢舉訊息
顯示原始貼文
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者: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?
>