Show an animated spinner while a backgound task is processing in rails 3, resque

StackOverflow https://stackoverflow.com/questions/19674750

  •  01-07-2022
  •  | 
  •  

Pergunta

I am using resque for background tasks.
How can i show an animated spinner while a backgound task is processing?
I found a similar question, but it didn't help me

Foi útil?

Solução

When I've done this before, I've always set a flag on the object itself in the database once it enters Resque, then as soon as the job is done in the Resque task, updated that flag again. You can use AJAX to monitor the status of that flag and manipulate the page / spinner accordingly.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top