Misc loop block changes (#1494)

This commit is contained in:
Shuchang Zheng
2025-01-05 22:58:24 -08:00
committed by GitHub
parent a241b09701
commit 74c8dd45f5
4 changed files with 18 additions and 9 deletions

View File

@@ -351,7 +351,7 @@ class WorkflowService:
exception_message = "unexpected exception"
if isinstance(e, SkyvernException):
exception_message = f"unexpected SkyvernException({e.__class__.__name__})"
exception_message = f"unexpected SkyvernException({e.__class__.__name__}): {str(e)}"
failure_reason = f"Block with type {block.block_type} at index {block_idx}/{blocks_cnt -1} failed. failure reason: {exception_message}"
await self.mark_workflow_run_as_failed(
@@ -1371,7 +1371,7 @@ class WorkflowService:
loop_over_parameter = parameters[trimmed_key]
if loop_over_parameter is None and not block_yaml.loop_variable_reference:
raise Exception("empty loop value parameter")
raise Exception("Loop value parameter is required for for loop block")
return ForLoopBlock(
label=block_yaml.label,