Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

When doing a long running operation in Horizon, how do I notify the user of the result

In our inhouse stack (running Icehouse) I've added logic to automatically register new instances in dns using Designate
This works quite nice, but the designate operations take a few seconds to complete, therefore I added the option to run this in a separate thread (like glance create image). This all works quite nice, but what I would like to do is notify the user that the operation has been competed successfully or more important notify the end user of any problems. I've added a call to messages.info() at the end of the method and that obviously works when not spawning a new thread, but when using a thread the notfication never pops up. Is there a way to handle this in Horizon ?