Skip to content

[v3-2-test] fix(scheduler): skip asset-triggered dags without SerializedDagModel (#64322)#64738

Merged
potiuk merged 1 commit intov3-2-testfrom
backport-b91394a-v3-2-test
Apr 8, 2026
Merged

[v3-2-test] fix(scheduler): skip asset-triggered dags without SerializedDagModel (#64322)#64738
potiuk merged 1 commit intov3-2-testfrom
backport-b91394a-v3-2-test

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions bot commented Apr 5, 2026

  • fix(scheduler): skip asset-triggered dags without SerializedDagModel in dags_needing_dagruns

Remove those dag_ids from the in-memory candidate set until serialization
exists; retain AssetDagRunQueue rows and emit DEBUG logs. Add unit tests and
a bugfix newsfragment.

  • fix(scheduler): prevent premature asset-triggered DagRuns when SerializedDagModel is unavailable

  • test(dag): persist DagModel before AssetDagRunQueue in unit tests

Split DagModel and AssetDagRunQueue inserts and flush after DagModel so foreign-key order matches production DB constraints in TestDagModel.

  • Apply suggestions from code review

Co-authored-by: Wei Lee weilee.rx@gmail.com

  • refactor(dag): clarify ADRQ skip log and condense serialized-DAG guard

Combine the missing-from-serialized set check with a walrus assignment and improve the debug message when DagRun creation is skipped for DAGs with queued asset events but no SerializedDagModel row.

  • test(models): align caplog assertions with updated serialized dag warnings

  • test(dag): align ADRQ missing-serialized log assertion with message text

  • Apply suggestion from @jscheffl

Co-authored-by: Jens Scheffler 95105677+jscheffl@users.noreply.github.com

  • chore(newsfragments): remove 64322.bugfix.rst

(cherry picked from commit b91394a)

Co-authored-by: Leonardo Soares leoss33@outlook.com.br
Co-authored-by: Wei Lee weilee.rx@gmail.com
Co-authored-by: Jens Scheffler 95105677+jscheffl@users.noreply.github.com

…zedDagModel (#64322)

* fix(scheduler): skip asset-triggered dags without SerializedDagModel in dags_needing_dagruns

Remove those dag_ids from the in-memory candidate set until serialization
exists; retain AssetDagRunQueue rows and emit DEBUG logs. Add unit tests and
a bugfix newsfragment.

* fix(scheduler): prevent premature asset-triggered DagRuns when SerializedDagModel is unavailable

* test(dag): persist DagModel before AssetDagRunQueue in unit tests

Split DagModel and AssetDagRunQueue inserts and flush after DagModel so foreign-key order matches production DB constraints in TestDagModel.

* Apply suggestions from code review

Co-authored-by: Wei Lee <weilee.rx@gmail.com>

* refactor(dag): clarify ADRQ skip log and condense serialized-DAG guard

Combine the missing-from-serialized set check with a walrus assignment and improve the debug message when DagRun creation is skipped for DAGs with queued asset events but no SerializedDagModel row.

* test(models): align caplog assertions with updated serialized dag warnings

* test(dag): align ADRQ missing-serialized log assertion with message text

* Apply suggestion from @jscheffl

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>

* chore(newsfragments): remove 64322.bugfix.rst

---------
(cherry picked from commit b91394a)

Co-authored-by: Leonardo Soares <leoss33@outlook.com.br>
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
@eladkal eladkal marked this pull request as ready for review April 6, 2026 10:17
@eladkal eladkal requested review from XD-DENG and ashb as code owners April 6, 2026 10:17
@potiuk potiuk merged commit 93d8984 into v3-2-test Apr 8, 2026
75 checks passed
@potiuk potiuk deleted the backport-b91394a-v3-2-test branch April 8, 2026 11:29
vatsrahul1001 pushed a commit that referenced this pull request Apr 8, 2026
…zedDagModel (#64322) (#64738)

* fix(scheduler): skip asset-triggered dags without SerializedDagModel in dags_needing_dagruns

Remove those dag_ids from the in-memory candidate set until serialization
exists; retain AssetDagRunQueue rows and emit DEBUG logs. Add unit tests and
a bugfix newsfragment.

* fix(scheduler): prevent premature asset-triggered DagRuns when SerializedDagModel is unavailable

* test(dag): persist DagModel before AssetDagRunQueue in unit tests

Split DagModel and AssetDagRunQueue inserts and flush after DagModel so foreign-key order matches production DB constraints in TestDagModel.

* Apply suggestions from code review



* refactor(dag): clarify ADRQ skip log and condense serialized-DAG guard

Combine the missing-from-serialized set check with a walrus assignment and improve the debug message when DagRun creation is skipped for DAGs with queued asset events but no SerializedDagModel row.

* test(models): align caplog assertions with updated serialized dag warnings

* test(dag): align ADRQ missing-serialized log assertion with message text

* Apply suggestion from @jscheffl



* chore(newsfragments): remove 64322.bugfix.rst

---------
(cherry picked from commit b91394a)

Co-authored-by: Leonardo Soares <leoss33@outlook.com.br>
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants