Skip to content
Merged
Changes from 4 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
9 changes: 6 additions & 3 deletions azure/durable_functions/models/TaskOrchestrationExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,14 @@ def parse_history_event(directive_result):

# We provide the ability to deserialize custom objects, because the output of this
# will be passed directly to the orchestrator as the output of some activity
if event_type == HistoryEventType.SUB_ORCHESTRATION_INSTANCE_COMPLETED:
if (event_type == HistoryEventType.SUB_ORCHESTRATION_INSTANCE_COMPLETED and
directive_result.Result is not None):
return json.loads(directive_result.Result, object_hook=_deserialize_custom_object)
if event_type == HistoryEventType.TASK_COMPLETED:
if (event_type == HistoryEventType.TASK_COMPLETED and
directive_result.Result is not None):
return json.loads(directive_result.Result, object_hook=_deserialize_custom_object)
if event_type == HistoryEventType.EVENT_RAISED:
if (event_type == HistoryEventType.EVENT_RAISED and
directive_result.Result is not None):
# TODO: Investigate why the payload is in "Input" instead of "Result"
response = json.loads(directive_result.Input,
object_hook=_deserialize_custom_object)
Expand Down