Skip to content

fix: Lang-SDK coordinator tasks do not run their task callbacks - #74578

Open
Davda-James wants to merge 2 commits into
apache:mainfrom
Davda-James:issues/74063
Open

Davda-James wants to merge 2 commits into
apache:mainfrom
Davda-James:issues/74063

Conversation

@Davda-James

Copy link
Copy Markdown

Description: Fix callback execution for coordinator-run Python @task.stub tasks by enqueueing success, failure, and retry callback requests through the Execution API. The DAG processor now dispatches the appropriate callbacks from the original Python DAG. ts, java, and go sdks require no changes because they use the shared Python supervisor for task state reporting.

closes: #74063

@Davda-James

Copy link
Copy Markdown
Author

I'm not entirely sure about this part of the change. We now load the serialized DAG for regular task failures as well, whereas previously it was avoided when fail_fast=False. Is this expected, or should we try to preserve the existing memory optimization?

@jason810496 jason810496 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.

Thanks for the PR.

We need to consider both the Dag authored by language SDK and the Python Dag with Stub operator, we can treat them separately. Fixing at execution API isn't a good direction to approach it, we should either fix at the supervisor or the SDK runtime level.

This branch has not been deployed

No deployments
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.

Lang-SDK coordinator tasks do not run their task callbacks

2 participants