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

Lift SyncFlowWorkflow into activity entirely #2371

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

serprex
Copy link
Contributor

@serprex serprex commented Dec 17, 2024

No description provided.

flow/activities/flowable.go Outdated Show resolved Hide resolved
@@ -554,12 +546,6 @@ func CDCFlowWorkflow(

if shared.ShouldWorkflowContinueAsNew(ctx) {
restart = true
if syncFlowFuture != nil {
if err := model.SyncStopSignal.SignalChildWorkflow(ctx, syncFlowFuture, struct{}{}).Get(ctx, nil); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Have to decide whether cdc_flow restarts hard pause sync flow, otherwise have to setup a whole session state thing so workflow can signal activity to shutdown

@serprex serprex force-pushed the sync-flow-activity branch 6 times, most recently from 249fc44 to deac49b Compare December 19, 2024 17:41
@serprex serprex marked this pull request as ready for review December 19, 2024 17:42
@serprex
Copy link
Contributor Author

serprex commented Dec 20, 2024

tested StartToCloseTimeout being hit (1 year in this PR). Result is activity retries. So that's fine

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.

1 participant