Skip to content

add asyncComplete support to sdk Task base class#136

Draft
klouds27 wants to merge 1 commit into
conductor-oss:mainfrom
klouds27:fix/task-async-complete
Draft

add asyncComplete support to sdk Task base class#136
klouds27 wants to merge 1 commit into
conductor-oss:mainfrom
klouds27:fix/task-async-complete

Conversation

@klouds27

Copy link
Copy Markdown

asyncComplete exists on WorkflowTask but is not exposed through the sdk, making it impossible to define async http or event tasks without subclassing as a workaround.

adds the field to Task<T> alongside optional and startDelay, wires it through toWorkflowTask() and restores it from the WorkflowTask constructor. any task type can now call .asyncComplete(true).

asyncComplete was present on WorkflowTask but not exposed through
the sdk, making it impossible to create async http or event tasks
without subclassing as a workaround.

adds the field to Task<T> alongside optional and startDelay, wires
it through toWorkflowTask() and restores it from the WorkflowTask
constructor. any task type can now call .asyncComplete(true).

Signed-off-by: klouds27 <adalwolf@gmail.com>
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ Complexity Δ
...netflix/conductor/sdk/workflow/def/tasks/Task.java 63.44% <100.00%> (+2.07%) 23.00 <2.00> (+2.00)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@v1r3n v1r3n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. The base task builder now preserves asyncComplete when converting both to and from WorkflowTask, and the added round-trip test verifies the public HTTP task path. I found no correctness, security, or test-coverage issue requiring changes.

@v1r3n

v1r3n commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@klouds27 make it ready for review when ready.

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