sarutak 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_r366722592
 
 

 ##########
 File path: .travis.yml
 ##########
 @@ -87,6 +91,18 @@ jobs:
         BACKEND=sqlite
         PYTHON_VERSION=3.6
       stage: test
+    - name: "Tests [Sqlite][3.7][multiprocessing(spawn)]"
+      env: >-
+        AIRFLOW__CORE__MP_START_METHOD=spawn
 
 Review comment:
   @potiuk I tried to do what you suggested but I noticed It's not enough 
because the pickle error happens when scheduler runs.
   Instead, I added one test case to `tests/jobs/test_scheduler_job.py`, which 
is almost a copy of an existing test case but set `mp_start_method` to `spawn`.
   The pickle error can be tested the test case but another issue, updated 
configuration is not inherited by child processes, cannot be tested so I also 
added a test case to `tests/utils/test_dag_processing.py`.

----------------------------------------------------------------
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

Reply via email to