Skip to content

Python: Consolidate workflow ID instantiation #1665

@TaoChenOSU

Description

@TaoChenOSU

Currently, workflow can get ID from two places:

  1. Randomly generated at build time
  2. From a checkpoint

The Id is also managed by 3 entities during runtime:

  1. The workflow object itself
  2. The runner
  3. The runner context

We are currently doing nothing to make sure the ID in these 3 places stay in sync.

We should consider a way to have a non-random identifier for workflow. Currently, the traces from different workflow instances are separated because their IDs are different. This creates an issue when you have a persisted session, which creates different instances of workflows but following the same checkpoint state lineage. In this case, there isn't a way to "join" these separate traces from different instances.

Metadata

Metadata

Assignees

Labels

pythonv1.0Features being tracked for the version 1.0 GAworkflowsRelated to Workflows in agent-framework

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions