dapr / python-sdk

Dapr SDK for Python
Apache License 2.0
223 stars 125 forks source link

Add when_any and fix grpc worker initialization #570

Closed DeepanshuA closed 1 year ago

DeepanshuA commented 1 year ago

Description

This PR adds when_any/when_all support and also provides option to initialize WorkflowRuntime/TaskHubGrpcWorker with correct host/port.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #569

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

codecov[bot] commented 1 year ago

Codecov Report

Merging #570 (498b014) into master (9b39e45) will decrease coverage by 0.01%. The diff coverage is 92.59%.

@@            Coverage Diff             @@
##           master     #570      +/-   ##
==========================================
- Coverage   89.60%   89.60%   -0.01%     
==========================================
  Files          72       73       +1     
  Lines        3310     3319       +9     
==========================================
+ Hits         2966     2974       +8     
- Misses        344      345       +1     
Impacted Files Coverage Δ
...orkflow/dapr/ext/workflow/dapr_workflow_context.py 75.00% <71.42%> (-2.78%) :arrow_down:
...xt/dapr-ext-workflow/dapr/ext/workflow/__init__.py 100.00% <100.00%> (ø)
...workflow/dapr/ext/workflow/dapr_workflow_client.py 100.00% <100.00%> (+2.56%) :arrow_up:
ext/dapr-ext-workflow/dapr/ext/workflow/util.py 100.00% <100.00%> (ø)
...ext-workflow/dapr/ext/workflow/workflow_context.py 79.48% <100.00%> (ø)
...ext-workflow/dapr/ext/workflow/workflow_runtime.py 78.57% <100.00%> (+1.64%) :arrow_up:
...r-ext-workflow/dapr/ext/workflow/workflow_state.py 83.87% <100.00%> (ø)