Copilot commented on code in PR #49015:
URL: https://github.com/apache/airflow/pull/49015#discussion_r2037427067
##########
airflow-core/src/airflow/migrations/versions/0042_3_0_0_add_uuid_primary_key_to_task_instance_.py:
##########
@@ -203,12 +206,26 @@ def upgrade():
if dialect_name == "postgresql":
op.execute(pg_uuid7_fn)
- # TODO: Add batching to handle updates in smaller chunks for large
tables to avoid locking
# Migrate existing rows with UUID v7 using a timestamp-based generation
Review Comment:
The infinite loop currently lacks a safeguard to exit if the update process
behaves unexpectedly. Consider adding a maximum iteration count or timeout to
prevent a potential infinite loop.
```suggestion
# Migrate existing rows with UUID v7 using a timestamp-based
generation
iteration_count = 0
```
--
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]