hussein-awala commented on PR #39484:
URL: https://github.com/apache/airflow/pull/39484#issuecomment-2100812157

   > On the other hand, the change you propose will impact memory used in a 
long term as the long running processes might accumulate memory when run for a 
long time and run different callables. So it might cause memory leak, not 
mentioning that in the original model the forked processes are only needed for 
a very short time - to send tasks to celery and for example they are not 
consuming any resources when there are no tasks to run (because they are 
stopped right after they complete,
   
   This pool executor is only used to execute short-running tasks, I don't 
think it will impact the memory usage, and I believe that this kind of objects 
(process/thread pool executor) should be created once and reused.
   
   If it's really a risky change, we can add a new configuration to switch 
between the behaviors and change the default value later when the new behavior 
is tested in production.


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