Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Conductor Java SDK cannot create a HTTP task with asyncComplete = true #3892

Open
tianxie opened this issue Dec 12, 2023 · 0 comments
Open
Labels
type: bug bugs/ bug fixes

Comments

@tianxie
Copy link

tianxie commented Dec 12, 2023

Describe the bug
I didn't see a asyncComplete field defined in com.netflix.conductor.sdk.workflow.def.tasks.Http class, so I cannot create an asyncComplete enabled HTTP task.

I think com.netflix.conductor.sdk.workflow.def.tasks.Event may have the same issue.

Details
Conductor version: 3.15.0
Conductor Java SDK version: 3.15.0

Additional context
Currently, I can only define a AsyncHttp class like this to bypass this issue:

import com.netflix.conductor.common.metadata.workflow.WorkflowTask;
import com.netflix.conductor.sdk.workflow.def.tasks.Http;

public class AsyncHttp extends Http {

    public AsyncHttp(String taskReferenceName) {
        super(taskReferenceName);
    }

    protected void updateWorkflowTask(WorkflowTask workflowTask) {
//        workflowTask.getInputParameters().put("http_request", super.getHttpRequest());
        workflowTask.setAsyncComplete(true);
    }
}
@tianxie tianxie added the type: bug bugs/ bug fixes label Dec 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug bugs/ bug fixes
Projects
None yet
Development

No branches or pull requests

1 participant