Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows pass context into ReplayPartialWorkflowHistoryFromJSONFile #1067

Open
longquanzheng opened this issue Mar 18, 2021 · 0 comments
Open

Comments

@longquanzheng
Copy link
Collaborator

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.

func ReplayWorkflowExecution(ctx context.Context, service workflowserviceclient.Interface, logger *zap.Logger, domain string, execution workflow.Execution) error {

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

@longquanzheng longquanzheng changed the title Allows pass context into z ReplayPartialWorkflowHistoryFromJSONFile Allows pass context into ReplayPartialWorkflowHistoryFromJSONFile Mar 18, 2021
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

No branches or pull requests

1 participant