cron: add hook for dynamic task registration