Merge pull request #18567 from scmmishra/task-fix-patch1

fix: task not updated issue