Hello Mehak,
Can you check the status of your task by making it visible into your task overview, this can help deciding what is the rootcause of the problem.
1. Are there tasks with the wrong status showing up in your list
or
2. Are the tasks getting the wrong status?
Please let us know
Good luck!
Did you set the app security to "Production"? Only then the access rules are enforced.