-
Notifications
You must be signed in to change notification settings - Fork 109
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
feat(client): add client.workflow.count
high level API
#1573
Conversation
countWorkflowExecutions
for workflow clientclient.workflow.count
high level API
@@ -1,7 +1,8 @@ | |||
import { randomUUID } from 'crypto'; | |||
import { ExecutionContext } from 'ava'; | |||
import { firstValueFrom, Subject } from 'rxjs'; | |||
import { WorkflowFailedError } from '@temporalio/client'; | |||
import asyncRetry from 'async-retry'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some lint warnings here. Make sure to execute npm run lint
before pushing to GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd run this prior to pushing, does it not make code changes, just warnings?
In any case, I've addressed the warnings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm run lint
should fix the code, if auto-fix is possible. Not sure why it didn't.
…iendlier option to using the corresponding GRPC method directly.
345d700
to
40489d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thanks a lot, @THardy98!
What was changed
Added a
count
method to the workflow client, a higher-level, user-friendlier option to using the corresponding GRPC method directly.Closes [Feature Request] Support countWorkflowExecutions #1069
How was this tested:
Added an integration test.
Any docs updates needed?
Not sure