File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2323import temporalio .converter
2424import temporalio .exceptions
2525import temporalio .workflow
26+ from temporalio .api .enums .v1 import WorkflowTaskFailedCause
2627from temporalio .bridge .worker import PollShutdownError
2728
2829from . import _command_aware_visitor
@@ -385,8 +386,9 @@ async def _handle_activation(
385386 )
386387 completion .failed .Clear ()
387388 await data_converter .encode_failure (err , completion .failed .failure )
388- # TODO: Add WORKFLOW_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE to API
389- # completion.failed.force_cause = WorkflowTaskFailedCause.WORKFLOW_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE
389+ completion .failed .force_cause = (
390+ WorkflowTaskFailedCause .WORKFLOW_TASK_FAILED_CAUSE_PAYLOADS_TOO_LARGE
391+ )
390392 except Exception as err :
391393 logger .exception (
392394 "Failed encoding completion on workflow with run ID %s" , act .run_id
You can’t perform that action at this time.
0 commit comments