summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/command_line_builds.html
diff options
context:
space:
mode:
authorMarlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>2023-12-14 14:44:09 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-16 13:06:11 +0000
commitff7aba28f7071a787ed3c0b230139512bf05f86a (patch)
tree4aece43df72fbb4e4d4372f72cfa09d7a2b24d79 /bitbake/lib/toaster/toastergui/templates/command_line_builds.html
parent53d45455a22490bb5d29f62d43b4afa865e141d2 (diff)
downloadpoky-ff7aba28f7071a787ed3c0b230139512bf05f86a.tar.gz
bitbake: toaster: Added validation to stop import if there is a build in progress
Added validation to prevent simultaneous imports from running because the database fails at runtime. The option to create a queue was taken into consideration. However, it will require the use of Celery https://pypi.org/project/celery/ or Background Task https://pypi.org/project/django-background-tasks/ which require the use of external services and multiple dependencies. If required we could explore the alternative in the future. (Bitbake rev: eb417e27be5717a259f27e98dbd73255b1a42fc9) Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/command_line_builds.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/command_line_builds.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/command_line_builds.html b/bitbake/lib/toaster/toastergui/templates/command_line_builds.html
index fcbe80d8d1..05db6727e7 100644
--- a/bitbake/lib/toaster/toastergui/templates/command_line_builds.html
+++ b/bitbake/lib/toaster/toastergui/templates/command_line_builds.html
@@ -152,7 +152,11 @@ function _ajax_update(file, all, dir){
152 type: "POST", 152 type: "POST",
153 data: {file: file, all: all, dir: dir}, 153 data: {file: file, all: all, dir: dir},
154 success:function(data){ 154 success:function(data){
155 window.location = '/toastergui/builds/' 155 if (data['response']=='building'){
156 location.reload()
157 } else {
158 window.location = '/toastergui/builds/'
159 }
156 }, 160 },
157 complete:function(data){ 161 complete:function(data){
158 }, 162 },