temporalio / features

Behavior and history compatibility testing for Temporal SDKs
13 stars 17 forks source link

[Feature Request] Spec for expected client behavior when using handle or stub methods #22

Open bergundy opened 2 years ago

bergundy commented 2 years ago

https://github.com/temporalio/sdk-typescript/pull/468 changed the behavior of WorkflowHandle methods to use run_id only when a handle is created with one (getHandle in TS).

Handles created with start should follow runs by default and use first_execution_run_id for safety (don't operate on runs that aren't part of the same execution chain). Handles created with signal_with_start should not use run_id but cannot yet guarantee safety, a server change is required for that.

getHandle should accept a first_execution_run_id for safety.

NOTE: signal, query and describe methods are unsafe at the time of this writing and require a server + API change.

josh-berry commented 1 year ago

@bergundy Should this be a TypeScript issue? Not sure why this is in features.

bergundy commented 1 year ago

This issue is to test and document the behavior across sdks