Пример #1
0
 def deleteNotebook(notebookId: str):
     """
     Service to run notebook job
     """
     res = ApiResponse(message="Error in cloning notebook")
     response = Zeppelin.deleteNotebook(notebookId)
     if response:
         res.update(True, "Notebook deleted successfully", None)
     return res
Пример #2
0
 def deleteNotebook(notebookId: str):
     """
     Service to run notebook job
     """
     res = ApiResponse(message="Error in deleting notebook")
     response = Zeppelin.deleteNotebook(notebookId)
     if response:
         NotebookObject.objects.filter(
             notebookZeppelinId=notebookId).delete()
         res.update(True, "Notebook deleted successfully", None)
     return res