diff --git a/airflow/dag_processing/manager.py b/airflow/dag_processing/manager.py index 0e9f8b4bc37b0..e48154dec4e00 100644 --- a/airflow/dag_processing/manager.py +++ b/airflow/dag_processing/manager.py @@ -39,7 +39,6 @@ from typing import TYPE_CHECKING, Any, NamedTuple import attrs -from setproctitle import setproctitle from sqlalchemy import delete, select, update from tabulate import tabulate from uuid6 import uuid7 @@ -181,7 +180,15 @@ def _run_processor_manager( # to iterate the child processes set_new_process_group() - setproctitle("airflow scheduler -- DagFileProcessorManager") + + # setproctitle causes issue on Mac OS: https://github.com/benoitc/gunicorn/issues/3021 + os_type = sys.platform + if os_type == "darwin": + log.info("Mac OS detected, skipping setproctitle") + else: + from setproctitle import setproctitle + setproctitle("airflow scheduler -- DagFileProcessorManager") + reload_configuration_for_dag_processing() processor_manager = DagFileProcessorManager( dag_directory=dag_directory,