Skip to content

Commit

Permalink
fix: CI fix
Browse files Browse the repository at this point in the history
Signed-off-by: 35C4n0r <[email protected]>
  • Loading branch information
35C4n0r committed Sep 27, 2024
1 parent 85f11b4 commit d5dbd79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keep/api/routes/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ async def run_workflow_from_definition(


async def __get_workflow_raw_data(
request: Request, file: UploadFile, tenant_id
request: Request | None, file: UploadFile, tenant_id
) -> Tuple[dict, bool]:
try:
# we support both File upload (from frontend) or raw yaml (e.g. curl)
Expand All @@ -304,7 +304,7 @@ async def __get_workflow_raw_data(
is_valid = True
except Exception as e:
is_valid = False
logger.error(str(e))
logger.error(f"Error while validating workflow yaml {workflow_data['id']}", extra={"exception": e})

return workflow_data, is_valid

Expand Down
1 change: 1 addition & 0 deletions keep/workflowmanager/workflowstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ def provision_workflows_from_directory(
tenant_id=tenant_id, parsed_workflow_yaml=workflow_yaml
)
except Exception as e:
logger.error(f"Error while validating workflow yaml {workflow_id}", extra={"exception": e})
is_valid = False
add_or_update_workflow(
id=workflow_id,
Expand Down

0 comments on commit d5dbd79

Please sign in to comment.