Skip to content

Commit af7b970

Browse files
authored
chore: remove @durable_handler (#101)
1 parent 41bc9f6 commit af7b970

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/aws_durable_execution_sdk_python/execution.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
import logging
55
from dataclasses import dataclass
66
from enum import Enum
7-
from functools import wraps
87
from typing import TYPE_CHECKING, Any
9-
from warnings import warn
108

119
from aws_durable_execution_sdk_python.context import DurableContext, ExecutionState
1210
from aws_durable_execution_sdk_python.exceptions import (
@@ -317,9 +315,3 @@ def wrapper(event: Any, context: LambdaContext) -> MutableMapping[str, Any]:
317315
).to_dict()
318316

319317
return wrapper
320-
321-
322-
@wraps(durable_execution)
323-
def durable_handler(*args, **kwargs):
324-
warn("Deprecated, use `durable_execution`.", DeprecationWarning, stacklevel=2)
325-
return durable_execution(*args, **kwargs)

src/aws_durable_execution_sdk_python/operation/step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def step_handler(
158158
operation_identifier.operation_id,
159159
operation_identifier.name,
160160
)
161-
# this bubbles up to execution.durable_handler, where it will exit with FAILED
161+
# this bubbles up to execution.durable_execution, where it will exit with FAILED
162162
raise
163163

164164
logger.exception(

0 commit comments

Comments
 (0)