Skip to content

[Feature Request] workflow.uuid7() #1450

Closed

Description

@Lirontal1

Currently only workflow.uuid4() is supported. we would like to generate unique identifiers at the workflow level that are also time sorted, and would like to gave workflow.uuid7() for it :)

Activity

  1. added
    enhancement
    on Apr 15, 2026
  2. tconley1428 commented on Apr 15, 2026

    @tconley1428
    Contributor

    workflow.uuid4() is a pretty simple wrapper around workflow.random() because it is so commonly used.

        return uuid.UUID(bytes=random().getrandbits(16 * 8).to_bytes(16, "big"), version=4)
    

    You should be able to use that directly. If there's substantial need, we can consider including a helper for it.

  3. tconley1428 commented on Apr 23, 2026

    @tconley1428
    Contributor

    We've heard from an observability partner that they recommend uuid7, and an extra upvote is enough for me, so we'll likely add a helper for this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions