Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/aws_durable_execution_sdk_python/context.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import hashlib
import logging
from typing import TYPE_CHECKING, Any, Concatenate, Generic, ParamSpec, TypeVar

Expand Down Expand Up @@ -220,9 +221,10 @@ def _create_step_id(self) -> str:
the id generated by this method. It is subject to change without notice.
"""
new_counter: int = self._step_counter.increment()
return (
step_id = (
f"{self._parent_id}-{new_counter}" if self._parent_id else str(new_counter)
)
return hashlib.blake2b(step_id.encode()).hexdigest()[:64]

# region Operations

Expand Down
Loading