Task Status is not changing to overdue

Task status is not changing automatically to Overdue after the expected end date.

can you share ss

@sapnapokhriyal288 check this line no 430 erpnext/erpnext/hooks.py at develop · frappe/erpnext · GitHub daily scheduler is set for update overdue status

def set_tasks_as_overdue():
tasks = frappe.get_all(
“Task”,
filters={“status”: [“not in”, [“Cancelled”, “Completed”]]},
fields=[“name”, “status”, “review_date”],
)
for task in tasks:
if task.status == “Pending Review”:
if getdate(task.review_date) > getdate(today()):
continue
frappe.get_doc(“Task”, task.name).update_status()