aa1371 removed a comment on issue #11451:
URL: https://github.com/apache/airflow/issues/11451#issuecomment-939201903


   @esc's fix works for me. However, any reason we need to use this closure?
   
   
https://github.com/apache/airflow/blob/1df9a512c284f2585ce01bb77ac91d550f6ccaa3/airflow/executors/dask_executor.py#L82
   
   Getting rid of the closure and submitting the check_call directly to 
client.submit seems to work and doesn't run into the serialization issue:
   
   Current:
   ```
           def airflow_run():
               return subprocess.check_call(command, close_fds=True)
   
           ...
   
           future = self.client.submit(airflow_run, pure=False, 
resources=resources)
   ```
   
   Proposed:
   ```
           future = self.client.submit(subprocess.check_call, command, 
pure=False, resources=resources, close_fds=True)
   ```
   
   cc @jedcunningham 


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to