You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/05/05 19:54:24 UTC

[GitHub] [airflow] jhtimmins commented on a change in pull request #8671: Fix pickling failure when spawning processes

jhtimmins commented on a change in pull request #8671:
URL: https://github.com/apache/airflow/pull/8671#discussion_r420367691



##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -951,6 +955,19 @@ def _prepare_simple_dags(self, dags: List[DAG], pickle_dags: bool, session=None)
         return simple_dags
 
 
+def processor_factory(file_path, failure_callback_requests, dag_ids, pickle_dags):
+    """
+    Returns DagFileProcessorProcess instance. Will get pickled when start_method is
+    'spawn', so this can't be an class method.

Review comment:
       +1




----------------------------------------------------------------
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:
users@infra.apache.org