### Body

Recently, [this test](https://github.com/apache/airflow/blob/9de301da2a44385f57be5407e80e16ee376f3d39/tests/cli/commands/test_internal_api_command.py#L134-L137) began to failed with timeout error and it has affected all tests in single CI run. As temporary solution this test was marked as `quarantined`.

We should figure out why it happen and try to resolve it.



### Committer

- [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
stderr,
                        "--log-file",
                        logfile,
                    ]
                )
                assert proc.poll() is None
                pid_monitor = self._wait_pidfile(pidfile_monitor)
                self._wait_pidfile(pidfile_internal_api)
                
                assert 0 == subprocess.Popen(["pgrep", "-f", "-c", "airflow internal-api --daemon"]).wait()
                
                for i in range(30):
                    if 0 == subprocess.Popen(["pgrep", "-f", "-c", "^gunicorn"]).wait():
                        break
                    time.sleep(1)
                assert (
                    0 == subprocess.Popen(["pgrep", "-c", "-f", "gunicorn: master"]).wait()
                )  
                
                proc = psutil.Process(pid_monitor)
                proc.terminate()
                assert proc.wait(120) in (0, None)
                self._check_processes()
            except Exception:
                
                subprocess.Popen(["ls", "-lah", tmpdir]).wait()
                
                subprocess.Popen(["bash", "-c", f"ls {tmpdir}/* | xargs -n 1 -t cat"]).wait()
                raise
    def test_cli_internal_api_debug(self, app):