Skip to content

Commit

Permalink
fix(db): triggered by length (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren authored Apr 3, 2024
1 parent 0d74a8b commit ae6fb73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keep/api/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ def create_workflow_execution(
) -> WorkflowExecution:
with Session(engine) as session:
try:
if len(triggered_by) > 255:
triggered_by = triggered_by[:255]
workflow_execution = WorkflowExecution(
id=str(uuid4()),
workflow_id=workflow_id,
Expand Down

0 comments on commit ae6fb73

Please sign in to comment.