pub async fn init_task_manager() -> Result<TaskManager>
Initialize task manager with database and backend.