Skip to content

Allows pass context into ReplayPartialWorkflowHistoryFromJSONFile #1067

Open
@longquanzheng

Description

@longquanzheng

Because some workflows expect to use the context to get some values for their business logic.

As a workaround, people could use this one for now.
https://github.com/uber-go/cadence-client/blob/d39d9abe91d776b1fcfb284e54460e3fcb98cb8a/worker/worker.go#L287

This allows you to pass in context.
But they need to implement a mock workflowserviceclient.Interface for getting history.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions