ephraimbuddy commented on PR #32102:
URL: https://github.com/apache/airflow/pull/32102#issuecomment-1611211021

   > I think there was a good reason we added `--preload`, 
https://github.com/apache/airflow/pull/27297/files and it was to remove lots of 
integrity warnings generated by parallel gunicorns trying to update the 
database in parallell and generating race conditions.
   > 
   > This cahnge means that when "reload_on_plugin_change" is turned on, we 
will start getting those warnings, unless the root cause of the problem has 
been fixed (I think it hasn't been fixed).
   > 
   > So I think this change only makes sense to be implemented if we find 
another way to prevent the integrity errors. For example adding some locking 
strategy for the DB operations that generated integrity warnings - without it, 
it will be a regression.
   
   Exactly my thoughts. Without fixing the source of the IntegrityErrors, this 
change will be a regression.
   
   @AVMusorin  How about adding a new configuration that when set to 
True(default), enables this preloading instead of using the plugin's config? 
That way it won't be a breaking change.


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