Sync settings and update task document.