# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt

from __future__ import unicode_literals
import frappe
from frappe.utils.scheduler import disable_scheduler, enable_scheduler

def execute():
	frappe.reload_doc("core", "doctype", "system_settings")
	if frappe.db.get_global("disable_scheduler"):
		disable_scheduler()
	else:
		enable_scheduler()

@@ -221,16 +221,46 @@
 cheduler
+%0Afrom frappe.utils import cint
 %0A%0Adef ex
@@ -329,16 +329,21 @@
 s%22)%0A%09if 
+cint(
 frappe.d
@@ -375,16 +375,17 @@
 eduler%22)
+)
 :%0A%09%09disa

Fix in enable scheduler patch