Ruby on Rails: How to run things in the background?

前端 未结 7 1939
暖寄归人
暖寄归人 2020-12-07 12:32

When a new resource is created and it needs to do some lengthy processing before the resource is ready, how do I send that processing away into the

7条回答
  •  悲&欢浪女
    2020-12-07 13:08

    I think spawn is a great way to fork your process, do some processing in background, and show user just some confirmation that this processing was started.

提交回复
热议问题