Add daemon for checking finished jobs
This commit is contained in:
@@ -9,6 +9,13 @@ function getNotifications() {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Looks for finished jobs.
|
||||
*/
|
||||
function jobDaemon() {
|
||||
$.get(SITE_URL + 'ajax/check_jobs');
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a cookie.
|
||||
*
|
||||
@@ -121,6 +128,7 @@ $(document).ready(function() {
|
||||
$('#notifications').hide();
|
||||
getNotifications();
|
||||
setInterval('getNotifications()', '5000');
|
||||
setInterval('jobDaemon()', JOBS_CHECK_INTERVAL * 1000);
|
||||
|
||||
/*
|
||||
* Tables
|
||||
|
||||
Reference in New Issue
Block a user