Airflow "The scheduler does not appear to be running. Last heartbeat was received X minute ago. The DAGs list may not update, and new tasks will not be scheduled." in Window docker with Linux env

I am running docker desktop 3.3.1 with Linux container on OS window server 2019.

Airflow started on the docker desktop using the docker-compose file as mention here and it’s running successfully. But while starting the dag on this airflow after some time I am getting the following message on the airflow webserver:

“The scheduler does not appear to be running. Last heartbeat was received X minute ago. The DAGs list may not update, and new tasks will not be scheduled.”

Some time airflow webserver container exit with code 137, airflow webserver console getting error “critical worker timeout”

Regards