Skip to content

Conversation

@jason810496
Copy link
Member

related: #50175

Why

The TestTaskInstancesLog.setup_attrs might cause sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) database is locked error.

For example: https://github.com/apache/airflow/actions/runs/15097906931/job/42435158054?pr=50175

@jason810496 jason810496 self-assigned this May 19, 2025
@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label May 19, 2025
@jason810496 jason810496 added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label May 19, 2025
@jason810496 jason810496 merged commit 6f40f99 into apache:main May 19, 2025
97 checks passed
github-actions bot pushed a commit that referenced this pull request May 19, 2025
(cherry picked from commit 6f40f99)

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
@github-actions
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

github-actions bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request May 19, 2025
…he#50763)

(cherry picked from commit 6f40f99)

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
oboki added a commit to oboki/airflow that referenced this pull request May 19, 2025
Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
oboki added a commit to oboki/airflow that referenced this pull request May 20, 2025
Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
jason810496 added a commit that referenced this pull request May 20, 2025
…rker environments (#50175)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error #50763

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>

---------

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
jason810496 added a commit to jason810496/airflow that referenced this pull request May 20, 2025
…rker environments (apache#50175)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error apache#50763

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>

---------

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
(cherry picked from commit 0b0ff5d)
potiuk pushed a commit that referenced this pull request May 21, 2025
…) (#50782)

(cherry picked from commit 6f40f99)

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
potiuk pushed a commit to jason810496/airflow that referenced this pull request May 21, 2025
…rker environments (apache#50175)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error apache#50763

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>

---------

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
(cherry picked from commit 0b0ff5d)
potiuk pushed a commit that referenced this pull request May 21, 2025
…rker environments (#50175) (#50833)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error #50763



---------


(cherry picked from commit 0b0ff5d)

Co-authored-by: oboki <oboki@kakao.com>
dadonnelly316 pushed a commit to dadonnelly316/airflow that referenced this pull request May 26, 2025
dadonnelly316 pushed a commit to dadonnelly316/airflow that referenced this pull request May 26, 2025
…rker environments (apache#50175)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error apache#50763

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>

---------

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
kaxil pushed a commit that referenced this pull request Jun 3, 2025
…) (#50782)

(cherry picked from commit 6f40f99)

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
kaxil pushed a commit that referenced this pull request Jun 3, 2025
…rker environments (#50175) (#50833)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error #50763



---------


(cherry picked from commit 0b0ff5d)

Co-authored-by: oboki <oboki@kakao.com>
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
…rker environments (apache#50175)

* fix: resolve 404 log error for non-latest task tries in multi-host worker environments

* refactor: extract TaskInstance and TaskInstanceHistory query logic from `get_log` endpoint function

* test: add unit test for `get_task_instance_or_history_for_try_number` function

* fix: resolve sqlite lock error apache#50763

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>

---------

Co-authored-by: LIU ZHE YOU <68415893+jason810496@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants