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

[Feature Request] Make worfkow_id and run_id available to Workflow Execution

Open c-thiel opened this issue 2 years ago • 0 comments

Currently the workflow_id and run_id are not accessible from a workflow worker, as it can not be derived from the temporal_sdk::WfContext.

Describe the solution you'd like

Extract the information from the StartWorkflow activation and make it available insight the workflow. According to @mjameswh extraction should take place https://github.com/temporalio/sdk-core/blob/master/sdk/src/lib.rs#L401-L413 or https://github.com/temporalio/sdk-core/blob/master/sdk/src/workflow_future.rs#L168.

Additional context

Related Slack discussion: https://temporalio.slack.com/archives/C02MTL0GEKH/p1699638930330959

c-thiel avatar Nov 11 '23 14:11 c-thiel