sdk-java icon indicating copy to clipboard operation
sdk-java copied to clipboard

Search attributes are not carried forward on ContinueAsNew

Open robzienert opened this issue 2 years ago • 3 comments

Expected Behavior

Search attributes to be carried-forward during Workflow.continueAsNew()

Actual Behavior

Continued-as-new workflows are missing the search attributes from the original run.

Steps to Reproduce the Problem

  1. Create a workflow with search attributes
  2. Call continueAsNew
  3. Verify via tctl that search attributes are missing from new run ID.

Specifications

  • Version: 1.10.0
  • Platform: 1.15.2

robzienert avatar May 11 '22 01:05 robzienert

Use ContinueAsNewOptions.Builder#setSearchAttributes to pass search attributes into continueAsNew for now.

Spikhalskiy avatar May 11 '22 01:05 Spikhalskiy

Use ContinueAsNewOptions.Builder#setSearchAttributes to pass search attributes into continueAsNew for now.

Is there a similar possibility in the python SDK for retry_policy? I don't see retry_policy as a param in continue_as_new.

patte avatar Aug 09 '22 19:08 patte

Is there a similar possibility in the python SDK for retry_policy? I don't see retry_policy as a param in continue_as_new.

@patte Please post as a question in #python-sdk channel of our Community Slack or as a feature request in https://github.com/temporalio/sdk-python/issues. Our Python SDK is still in beta, but this should be available there one day.

Spikhalskiy avatar Aug 09 '22 19:08 Spikhalskiy

closing in favor of https://github.com/temporalio/sdk-java/issues/1201 since there are more attributes not passed then just SA.

Quinn-With-Two-Ns avatar May 23 '23 17:05 Quinn-With-Two-Ns