Correctly pre-allocate external_executor_id. with multiple executors.#67388
Open
ashb wants to merge 1 commit into
Open
Correctly pre-allocate external_executor_id. with multiple executors.#67388ashb wants to merge 1 commit into
external_executor_id. with multiple executors.#67388ashb wants to merge 1 commit into
Conversation
This wasn't working on PostgreSQL when you used CeleryExecutor with another executor as the arms of the CASE had different types: ``` sqlalchemy.exc.ProgrammingError: (psycopg2.errors.DatatypeMismatch) CASE types text and uuid cannot be matched ``` The fix is to use an explicit cast.
external_exeuctor_id with multiple executors.external_executor_id. with multiple executors.
jscheffl
approved these changes
May 23, 2026
Contributor
jscheffl
left a comment
There was a problem hiding this comment.
Pure code-reading looks good. Unfortunately I am OOO but carry my business laptop with me and attempt to repro with this patched... but can not promise tomorrow. But code looks as promising that I assume "looks good" w/o testing in our env.
kaxil
approved these changes
May 23, 2026
eladkal
approved these changes
May 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This wasn't working on PostgreSQL when you used CeleryExecutor with another
executor as the arms of the CASE had different types:
The fix is to use an explicit cast. Reported by @jscheffl in slack and in #67385
closes: #67385
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.