File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,14 @@ <h4>Celery <span id="celery-status-badge" class="label label-default">Loading...
1414 < div class ="panel-body text-left " id ="celery-status-msg "> —</ div >
1515 < div class ="panel-body text-left ">
1616 < span id ="celery-queue-msg "> —</ span >
17- < button id ="purge-queue-btn " class ="btn btn-danger btn-xs " style ="margin-top: 8px; display: block " disabled title ="Loading... ">
18- Purge queue
19- </ button >
17+ < div style ="margin-top: 8px; ">
18+ < button id ="purge-queue-btn " class ="btn btn-danger btn-xs " disabled title ="Loading... ">
19+ Purge queue
20+ </ button >
21+ < button id ="refresh-status-btn " class ="btn btn-default btn-xs " style ="margin-left: 6px; ">
22+ < span class ="glyphicon glyphicon-refresh "> </ span > Refresh
23+ </ button >
24+ </ div >
2025 < p class ="text-muted " style ="margin-top: 8px; font-size: 0.9em ">
2126 < strong > Note:</ strong > Purging the queue removes pending tasks that have not yet been executed,
2227 including deduplication tasks. If deduplication tasks were in the queue, you may need to
@@ -106,6 +111,8 @@ <h4>Celery <span id="celery-status-badge" class="label label-default">Loading...
106111 $ ( function ( ) {
107112 loadCeleryStatus ( ) ;
108113
114+ $ ( '#refresh-status-btn' ) . on ( 'click' , loadCeleryStatus ) ;
115+
109116 $ ( '#purge-queue-btn' ) . on ( 'click' , function ( ) {
110117 if ( ! confirm ( 'Purge all pending tasks from the queue? This cannot be undone.' ) ) return ;
111118 $ . ajax ( {
You can’t perform that action at this time.
0 commit comments