Skip to content

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

@c-thiel

Description

@c-thiel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Rust SDKIssues about or asking for Rust SDK releaseenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions