Skip to content

Commit

Permalink
[Functions] Add deletion failure details (#5698)
Browse files Browse the repository at this point in the history
  • Loading branch information
rokatyy committed Jun 4, 2024
1 parent b318ae7 commit 64867f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mlrun/db/httpdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,10 @@ def delete_function(self, name: str, project: str = ""):
== mlrun.common.schemas.BackgroundTaskState.failed
):
logger.info(
"Function deletion failed", project_name=project, function_name=name
"Function deletion failed",
reason=background_task.status.error,
project_name=project,
function_name=name,
)

def list_functions(self, name=None, project=None, tag=None, labels=None):
Expand Down

0 comments on commit 64867f7

Please sign in to comment.