mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
![]() 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> |
||
---|---|---|
.. | ||
migrations | ||
static | ||
templatetags | ||
tools | ||
__init__.py | ||
admin.py | ||
bulkchange.py | ||
context_processors.py | ||
forms.py | ||
layerconfparse.py | ||
models.py | ||
querysethelper.py | ||
recipedesc.py | ||
recipeparse.py | ||
restperm.py | ||
restviews.py | ||
simplesearch.py | ||
tasks.py | ||
update_layer.py | ||
update.py | ||
urls_branch.py | ||
urls.py | ||
utils.py | ||
views.py |