cancel
Showing results for 
Search instead for 
Did you mean: 

stuck on a spinner

saintmichael
Nimbostratus
Nimbostratus

I have a case of a very long running database query, and I need spinner to entertain  the users. But  I cannot figure it  out.

location /longtest {
default_type  'text/html; charset=UTF-8';
 content_by_lua_block {
                local h = io.popen('bash -c "/usr/sbin/longtest.sh"');
                if h then
                     local r = h:read("*a");
                     ngx.say(r);
                end
            }
}

I need to show a spinner until my query is ready to show the data. How would you accomplish this using nginx?

 

0 REPLIES 0