@@ -51,8 +51,9 @@ class DurableOrchestrationContext:
5151 def __init__ (self ,
5252 history : List [Dict [Any , Any ]], instanceId : str , isReplaying : bool ,
5353 parentInstanceId : str , input : Any = None , upperSchemaVersion : int = 0 ,
54- maximumShortTimerDuration :str = None , longRunningTimerIntervalDuration :str = None ,
55- upperSchemaVersionNew :int = None , ** kwargs ):
54+ maximumShortTimerDuration : str = None ,
55+ longRunningTimerIntervalDuration : str = None , upperSchemaVersionNew : int = None ,
56+ ** kwargs ):
5657 self ._histories : List [HistoryEvent ] = [HistoryEvent (** he ) for he in history ]
5758 self ._instance_id : str = instanceId
5859 self ._is_replaying : bool = isReplaying
@@ -628,14 +629,14 @@ def create_timer(self, fire_at: datetime.datetime) -> TaskBase:
628629 if self ._replay_schema .value >= ReplaySchema .V3 .value :
629630 if not self .maximum_short_timer_duration or not self .long_timer_interval_duration :
630631 raise Exception (
631- "A framework-internal error was detected: " +
632- "replay schema version >= V3 is being used, " +
633- "but one or more of the properties `maximumShortTimerDuration`" +
634- "and `longRunningTimerIntervalDuration` are not defined. " +
635- "This is likely an issue with the Durable Functions Extension. " +
636- "Please report this bug here: " +
637- "https://github.com/Azure/azure-functions-durable-python/issues\n " +
638- f"maximumShortTimerDuration: { self .maximum_short_timer_duration } \n " +
632+ "A framework-internal error was detected: " \
633+ "replay schema version >= V3 is being used, " \
634+ "but one or more of the properties `maximumShortTimerDuration`" \
635+ "and `longRunningTimerIntervalDuration` are not defined. " \
636+ "This is likely an issue with the Durable Functions Extension. " \
637+ "Please report this bug here: " \
638+ "https://github.com/Azure/azure-functions-durable-python/issues\n " \
639+ f"maximumShortTimerDuration: { self .maximum_short_timer_duration } \n " \
639640 f"longRunningTimerIntervalDuration: { self .long_timer_interval_duration } "
640641 )
641642 if fire_at > self .current_utc_datetime + self .maximum_short_timer_duration :
@@ -718,7 +719,7 @@ def _add_to_actions(self, action_repr: Union[List[Action], Action]):
718719
719720 if self ._replay_schema is ReplaySchema .V1 and isinstance (action_repr , list ):
720721 self ._action_payload_v1 .append (action_repr )
721- elif (self ._replay_schema .value >= ReplaySchema .V2 .value
722+ elif (self ._replay_schema .value >= ReplaySchema .V2 .value
722723 and isinstance (action_repr , Action )):
723724 self ._action_payload_v2 .append (action_repr )
724725 else :
0 commit comments