Workflow: YAML interface (#123)

This commit is contained in:
Kerem Yilmaz 2024-03-24 22:55:38 -07:00 committed by GitHub
parent cf4749c1d5
commit 0b5456a4c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 306 additions and 16 deletions

View file

@ -21,3 +21,11 @@ class OutputParameterKeyCollisionError(BaseWorkflowException):
elif retry_count == 0:
message += " Max duplicate retries reached, aborting."
super().__init__(message)
class WorkflowDefinitionHasDuplicateParameterKeys(BaseWorkflowException):
def __init__(self, duplicate_keys: set[str]) -> None:
super().__init__(
f"WorkflowDefinition has parameters with duplicate keys. Each parameter needs to have a unique "
f"key. Duplicate key(s): {','.join(duplicate_keys)}"
)