Skip to content

Move the Dag file processor's shared plumbing into a base class - #74040

Merged
jason810496 merged 2 commits into
mainfrom
jason/lang-sdk-e2e/03a-dag-processor-base
Oct 2, 2026
Merged

jason810496 merged 2 commits into
mainfrom
jason/lang-sdk-e2e/03a-dag-processor-base

Conversation

@jason810496

@jason810496 jason810496 commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Stack (bottom to top): #74034, #74040, #74041, #74042, #74035, #74043, #74036, #74037, #73841, #73845, #73846, #73847

Why

A native Lang-SDK Dag file is parsed by a different child process than a Python Dag file (#74035). Both need the same plumbing for the Dag processor manager.

What changes

No behavior change.

DagFileProcessorProcess is split into a new BaseDagFileProcessorProcess, which holds what any parse child needs: the parse log, the requests answered with the API client, the parse result and the readiness check. DagFileProcessorProcess keeps the Python-specific start and callbacks. Each class declares its own _request_handlers, typed with itself, from the base's _common_request_handlers.


Was generative AI tooling used to co-author this PR?

@jason810496
jason810496 added this pull request to stack #74044 October 1, 2026 15:18
@jason810496 jason810496 self-assigned this Oct 1, 2026
@jason810496
jason810496 marked this pull request as ready for review October 1, 2026 16:50
@jason810496
jason810496 force-pushed the jason/lang-sdk-e2e/03a-dag-processor-base branch from cef0df5 to 0b47cba Compare October 2, 2026 00:53
@jason810496
jason810496 force-pushed the jason/lang-sdk-e2e/03a-dag-processor-base branch from 0b47cba to 3ff4e27 Compare October 2, 2026 04:07
@jason810496
jason810496 force-pushed the jason/lang-sdk-e2e/03a-dag-processor-base branch from 3ff4e27 to 0649a43 Compare October 2, 2026 05:44
Base automatically changed from jason/lang-sdk-e2e/02b-shared-dag-cycle-detection to main October 2, 2026 09:00
@pierrejeambrun
pierrejeambrun force-pushed the jason/lang-sdk-e2e/03a-dag-processor-base branch from 0649a43 to 7c112fe Compare October 2, 2026 09:00
@jason810496
jason810496 force-pushed the jason/lang-sdk-e2e/03a-dag-processor-base branch from 7c112fe to ca0d732 Compare October 2, 2026 11:41

@pierrejeambrun pierrejeambrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one suggestion.

Comment thread airflow-core/src/airflow/dag_processing/processor.py Outdated
jason810496 and others added 2 commits October 2, 2026 13:58
BaseDagFileProcessorProcess holds the parse log forwarding, the request
handlers, readiness and cleanup. DagFileProcessorProcess keeps only how
the Python parse child starts. No behavior change.
The manager gives DagFileProcessorProcess the per-file parse log handle,
and the base closes it, as on main.

Co-Authored-By: Claude <noreply@anthropic.com>
@jason810496
jason810496 force-pushed the jason/lang-sdk-e2e/03a-dag-processor-base branch from ca0d732 to 9024fcd Compare October 2, 2026 14:07
@jason810496
jason810496 merged commit f5283f3 into main Oct 2, 2026
79 checks passed
@jason810496
jason810496 deleted the jason/lang-sdk-e2e/03a-dag-processor-base branch October 2, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants