Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.
This repository was 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

Description

@tianxie

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);
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions