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

Add describeWorkflow method in Client #184

Merged
merged 2 commits into from Jul 14, 2023

Conversation

zklgame
Copy link
Contributor

@zklgame zklgame commented Jul 13, 2023

No description provided.

@zklgame zklgame force-pushed the zklgame/add_get_workflow_status_api branch from ffccbdc to 0d12a67 Compare July 13, 2023 14:35
@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Merging #184 (0d12a67) into main (aa6b166) will increase coverage by 0.16%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##               main     #184      +/-   ##
============================================
+ Coverage     69.71%   69.88%   +0.16%     
- Complexity      343      345       +2     
============================================
  Files            57       57              
  Lines          1453     1461       +8     
  Branches        134      134              
============================================
+ Hits           1013     1021       +8     
  Misses          368      368              
  Partials         72       72              
Impacted Files Coverage Δ
src/main/java/io/iworkflow/core/Client.java 60.71% <100.00%> (+0.35%) ⬆️
...ain/java/io/iworkflow/core/UnregisteredClient.java 59.68% <100.00%> (+1.30%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

* @param workflowRunId optional
* @return the workflow's status
*/
public WorkflowStatus getWorkflowStatus(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe getWorkflowInfo or describeWorkflow (the name is from Cadence/Temporal)

because we can extend it to get more fields, like workflowStartTime

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I put the new class WorkflowInfo into the idl or just in the java-sdk?
I created a MR to add it as a general schema in the idl:
https://github.com/indeedeng/iwf-idl/pull/43/files

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably in SDK to keep the idl simple for now

@zklgame zklgame changed the title Add getWorkflowStatus method in Client Add describeWorkflow method in Client Jul 14, 2023
@zklgame zklgame merged commit 95db90b into main Jul 14, 2023
1 check passed
@zklgame zklgame deleted the zklgame/add_get_workflow_status_api branch July 15, 2023 00:21
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

Successfully merging this pull request may close these issues.

None yet

2 participants