Merge pull request #18566 from scmmishra/task-fix

fix: task not updated issue