temporalio / sdk-java

Temporal Java SDK
https://temporal.io
Apache License 2.0
213 stars 144 forks source link

Revisit continue-as-new that doesn't carry over some attributes of parent run if not set explicitly #1201

Open Spikhalskiy opened 2 years ago

Spikhalskiy commented 2 years ago

Expected Behavior

Users calling Workflow.continueAsNew without an explicit ContinueAsNewOptions expect most workflow properties to carry over to the new run.

Actual Behavior

Right now continueAsNew is implemented in a way that assumes that most parameters are carried over by the server if not specified on the continueAsNew request. While in fact, it's the opposite. Server doesn't carry over most parameters are not carried over by the server.

Additional context

This task requires also

Related:

Quinn-With-Two-Ns commented 1 year ago

related: https://github.com/temporalio/sdk-java/issues/1424