Jualhosting commented on PR #67587:
URL: https://github.com/apache/airflow/pull/67587#issuecomment-4553393084

   During backfills (e.g., when locking task instances), Airflow calls 
with_row_locks which applies SQLAlchemy's with_for_update(). Since SQLite does 
not natively support SELECT ... FOR UPDATE row-level locking, SQLAlchemy or the 
database driver throws an OperationalError / compilation error, causing a 500 
Internal Server Error in the API. Since Airflow doesn’t support concurrent task 
execution with SQLite anyway, row-level locking isn't necessary. By adding a 
fast path to return the query untouched when dialect_name == "sqlite", we 
bypass the unsupported FOR UPDATE generation entirely, preventing the error 
while preserving the correct functional behavior.


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