Home How to reflect process on before_update?
Reply: 0

How to reflect process on before_update?

user647 Published in June 19, 2018, 6:28 pm

I have a project in which when I try to update some attribute, a long and exhausting before_update function runs. This function runs some scripts, and when they're finished successfully the attribute is changed.

The problem is that I want a way to reflect to current status of the currently running scripts (to display some sort of 2/5...3/5... process), but I can't figure out a solution. I tried saving the last running command in the DB, but because the scripts are running in a before_update scope the commit is done only after all script are finished.

Is there any elegant solution to this kind of problem?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.329574 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO