hi,
i want to set dynamic cron job time,
i added below code in hooks.py and its working great, but i want to set that time dynamically from custom doctype. i cannot fetch value from db in hooks.py
below is the error
raise RuntimeError("no object bound to %s" % self.__name__)
RuntimeError: no object bound to db
.
"cron":{
"5 0 * * *":[
"pathtofunction"
],
"5 12 * * *":[
"pathtofunction"
]
}