Fixes in Celery and Scheduler Hooks
hook: doctype_js:DOCTYPE, fixes in scheduler