开发者

Rails 3 Timer to run a method (Delayed Job)

开发者 https://www.devze.com 2023-03-01 16:09 出处:网络
I want to set a timer on ser开发者_开发百科ver side to run a method at a specific time. Has anybody done this using just rails and no AJAX? Thanks a lot. I\'d appreciate any input :)

I want to set a timer on ser开发者_开发百科ver side to run a method at a specific time. Has anybody done this using just rails and no AJAX? Thanks a lot. I'd appreciate any input :)

update: I've read about Delayed Job written by the amazing guys at Shopify. I think this might just do the trick


Your question is a little too vague to answer concisely. You may be looking for one of the following things:

  • A client-side redirect on a timer with http-equiv headers.
  • A cron task that executes rails runner on a regular schedule.
  • A timeout on an operation being performed, such as using Timeout.
0

精彩评论

暂无评论...
验证码 换一张
取 消