feat(scheduler): Show popup if scheduler is inactive (#8391)
This commit is contained in:
parent
5c5a9af97d
commit
9928aa38d7
1 changed files with 15 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue