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

Cascade terminate purge #662

Merged
merged 10 commits into from
Jan 24, 2024
Merged

Conversation

shivamkm07
Copy link
Contributor

Description

Adds support for cascade terminate/purge in dapr workflow.

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: #661

Checklist

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

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
@shivamkm07 shivamkm07 marked this pull request as ready for review January 24, 2024 09:42
@shivamkm07 shivamkm07 requested review from a team as code owners January 24, 2024 09:42
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3555605) 86.21% compared to head (d3c85db) 86.21%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #662   +/-   ##
=======================================
  Coverage   86.21%   86.21%           
=======================================
  Files          79       79           
  Lines        3998     3998           
=======================================
  Hits         3447     3447           
  Misses        551      551           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
@@ -88,6 +96,8 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVER }}
env:
GOPATH: ${{ github.workspace }}
Copy link
Member

Choose a reason for hiding this comment

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

Is this really needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it was failing without it with error GoPath not set

@@ -56,7 +56,15 @@ jobs:
echo "CHECKOUT_REF=${{ github.event.client_payload.pull_head_ref }}" >> $GITHUB_ENV
echo "DAPR_REF=master" >> $GITHUB_ENV
fi

- name: Parse workflow dispatch payload
Copy link
Member

Choose a reason for hiding this comment

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

Ah you refactored it to here. That's fine - hope it works :)

@@ -25,7 +25,7 @@ packages = find_namespace:
include_package_data = True
install_requires =
dapr-dev >= 1.11.0rc1.dev
durabletask >= 0.1.0
durabletask >= 0.1.1a1
Copy link
Member

Choose a reason for hiding this comment

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

You really shouldn't use alpha versions as dependencies in this SDK. Please use a proper versioning scheme on the durable task side :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will update once a stable version is released

Copy link
Member

@berndverst berndverst left a comment

Choose a reason for hiding this comment

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

LGTM

If you update the proto please make sure to share the runtime commit / tag from which the proto client was generated. (And ideally which versions of grpc-tools or protoc you used)

@berndverst berndverst merged commit ea367b3 into dapr:main Jan 24, 2024
16 checks passed
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.

[FEATURE REQUEST] Support Cascade Terminate/Purge feature for Dapr Workflow
2 participants