Skip to content

WorkflowExecutor.get_by_correlation_ids_and_names calls #508

Description

@sawmonaco

Calling WorkflowExecutor.get_by_correlation_ids_and_names function gives:

TypeError: OrkesWorkflowClient.get_by_correlation_ids_in_batch() got an unexpected keyword argument 'include_closed'. Did you mean 'include_completed'?

This is because the WorkflowClient expects include_completed (

def get_by_correlation_ids_in_batch(
self,
batch_request: CorrelationIdsSearchRequest,
include_completed: bool = False,
include_tasks: bool = False) -> Dict[str, List[Workflow]]:
)

but include_closed is being sent

def get_by_correlation_ids_and_names(self, batch_request: CorrelationIdsSearchRequest, include_closed: Optional[bool] = None,
include_tasks: Optional[bool] = None) -> Dict[str, List[Workflow]]:
"""
Given the list of correlation ids and list of workflow names, find and return workflows Returns a map with
key as correlationId and value as a list of Workflows When IncludeClosed is set to true, the return value
also includes workflows that are completed otherwise only running workflows are returned
"""
return self.workflow_client.get_by_correlation_ids_in_batch(batch_request=batch_request,
include_closed=include_closed,
include_tasks=include_tasks)

Activity

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions