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

I cannot access Temporal. get_workflow_history directly #301

Open
michellewkong opened this issue Jun 20, 2024 · 0 comments
Open

I cannot access Temporal. get_workflow_history directly #301

michellewkong opened this issue Jun 20, 2024 · 0 comments

Comments

@michellewkong
Copy link

get_workflow_history can only be accessed by instantiating a specific client such as

client = Temporal::Client.new(config)
result = client.get_workflow_history(namespace: 'ruby-samples', workflow_id: 'user-123', run_id: 'uuid-123')

Since I am configuring Temporal for my entire app in a single place, it would be much easier to access this similar to the way we can also access other client methods such as

Temporal.get_workflow_history(namespace: 'ruby-samples', workflow_id: 'user-123', run_id: 'uuid-123')

This seems like it would be resolved by adding get_workflow_history here https://github.com/coinbase/temporal-ruby/blob/master/lib/temporal.rb#L17

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

No branches or pull requests

1 participant