temporalio / sdk-core

Core Temporal SDK that can be used as a base for language specific Temporal SDKs
MIT License
271 stars 72 forks source link

sdk: make ChildWorkflowOptions::task_queue an Option #770

Closed djc closed 3 months ago

djc commented 3 months ago

What was changed

Changed ChildWorkflowOptions::task_queue from String to Option<String>. Apparently when left empty, the task queue for child workflows is inherited from the initiating workflow. In Rust, things like this are usually expressed in the type system rather than with sentinel values -- attempt to reflect that in the SDK interface here.

Why?

Makes it more obvious that the task queue can be inherited from the initiating activity.