uranusjr opened a new pull request, #48867: URL: https://github.com/apache/airflow/pull/48867
This uses an SQL on-conflict clause to activate assets when they are collected from DAG files in simple cases. This should cover most simple cases. where the new asset does not conflict with anything that already existed in the active table. When this optimistic insertion fails, the scheduler would come in later and check more comprehensively whether the existing record is actually an orphan, do a cleanup, and activate the new asset. This improves user ergonomics when adding a new asset. In most simple cases, the new asset would be active more immediately. On edge cases where an asset is deleted and added later and so on, the user is more likely to expect the update might take some time. See #48737 -- 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]
