Frappe Cloud Support Partners Foundation Frappe School

Dynamic Cron Job Time


i want to set dynamic cron job time,

i added below code in and its working great, but i want to set that time dynamically from custom doctype. i cannot fetch value from db in

below is the error

raise RuntimeError("no object bound to %s" % self.__name__)

RuntimeError: no object bound to db


		"5 0 * * *":[
		"5 12 * * *":[

are you planning to modify dynamically? That’s a bad idea.

jobs from are migrated over to db when you run bench migrate

No i am not trying to modify i just want to pass dynamic variable containing time like “5 12 * * *” to run cron job at dynamic time.