ashb commented on a change in pull request #7128: [AIRFLOW-6529] Pickle error
occurs when the scheduler tries to run on macOS.
URL: https://github.com/apache/airflow/pull/7128#discussion_r367407586
##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -126,7 +127,14 @@ def _run_file_processor(result_channel,
log = logging.getLogger("airflow.processor")
set_context(log, file_path)
- setproctitle("airflow scheduler - DagFileProcessor
{}".format(file_path))
+
+ if inherited_conf is not None: # pylint:
disable=too-many-nested-blocks
+ for section in inherited_conf:
+ for key, value in inherited_conf[section].items():
+ if value not in conf:
+ conf.set(section, key, value.replace("%", "%%"))
+
+ setproctitle("airflow scheduler - DagFileProcessor
{}".format(file_path))
Review comment:
When is inherited_conf used -- I can't find this one used anywhere either.
We want to set the process title always.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services