aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/admin.html
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-01-09 16:27:55 +0100
committerAleksandr Nogikh <nogikh@google.com>2024-01-09 17:48:04 +0000
commitb438bd66d6f95113d52f25c25bfef0e963c8ce8d (patch)
treeaffa3733771acfc752397dc89a1c6e712d4d622c /dashboard/app/admin.html
parent83b32fe8f20dc1e910866fa110b0d872df283f03 (diff)
dashboard: introduce an emergency stop mode
Add an emergency stop button that can be used by any admin. After it's clicked two times, syzbot stops all reporting and recoding of new bugs. It's assumed that the stop mode is revoked by manually deleting an entry from the database.
Diffstat (limited to 'dashboard/app/admin.html')
-rw-r--r--dashboard/app/admin.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/dashboard/app/admin.html b/dashboard/app/admin.html
index 8ada1c64b..dddc03d46 100644
--- a/dashboard/app/admin.html
+++ b/dashboard/app/admin.html
@@ -13,6 +13,12 @@ Main page.
</head>
<body>
{{template "header" .Header}}
+ {{if $.Stopped}}
+ <div class="emergency-stopped">Syzbot is in the emergency stop state</div>
+ {{else}}
+ <div class="emergency-stop">Syzbot is reporting too many bugs? {{link $.StopLink "Emergency stop"}} [click {{$.MoreStopClicks}} more times]<br />
+ In this mode, syzbot will stop all reporting and won't record any new findings.</div>
+ {{end}}
<a class="plain" href="#log"><div id="log"><b>Error log:</b></div></a>
<textarea id="log_textarea" readonly rows="20" wrap=off>{{printf "%s" .Log}}</textarea>
@@ -21,7 +27,6 @@ Main page.
textarea.scrollTop = textarea.scrollHeight;
</script>
<br><br>
-
{{with $.MemcacheStats}}
<table class="list_table">
<caption><a href="https://pkg.go.dev/google.golang.org/appengine/memcache?tab=doc#Item" target="_blank">Memcache stats:</a></caption>