layerindex-web/templates
Paul Eggleton d84bfd710d Allow stopping update task
For situations where the user launches a distro comparison update
process and then shortly afterwards realises it is operating with the
wrong configuration (or is otherwise broken) and is going to take a long
time to finish, add a button to the task page to stop the task. This was
tricky to get working, since the default behaviour of Celery's revoke()
would either terminate both the Celery task process along with the update
process (leaving us with no log saved to the database) or worse not even
kill the update process, depending on the signal sent. To avoid this,
send SIGUSR2, trap it in the task process and kill the child process,
returning gracefully. To make that possible I had to rewrite runcmd() to
use subprocess.Popen() instead of subprocess.check_call() as otherwise
we can't get the child's PID.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-09-20 16:04:49 +12:00
..
admin Use Django sites framework to specify website title 2013-12-28 11:03:29 +00:00
layerindex Allow stopping update task 2018-09-20 16:04:49 +12:00
registration Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
rrs Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
404.html Upgrade to Django 1.6+ 2016-06-12 11:33:08 +12:00
500.html Move all templates to a templates directory 2013-03-06 16:55:23 +00:00
base_toplevel.html Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00
base.html Add admin link to tools dropdown menu 2018-09-20 15:57:59 +12:00
pagination.html Upgrade to Bootstrap 3 2018-09-20 15:57:59 +12:00