feat(scheduler): Show popup if scheduler is inactive (#8391)

This commit is contained in:
Aditya Hase 2019-09-10 17:08:35 +05:30 committed by Faris Ansari
parent 5c5a9af97d
commit 9928aa38d7

View file

@ -130,6 +130,21 @@ frappe.Application = Class.extend({
}
}
this.link_preview = new frappe.ui.LinkPreview();
setInterval(function() {
frappe.call({
method: 'frappe.core.page.background_jobs.background_jobs.get_scheduler_status',
callback: function(r) {
if (r.message[0] == __("Inactive")) {
frappe.msgprint({
title: __("Scheduler Inactive"),
indicator: "red",
message: __("Background jobs are not running. Please contact Administrator")
});
}
}
});
}, 300000); // check every 5 minutes
},
setup_frappe_vue() {