mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 06:44:21 +00:00
🐛 Save started notebook id on the database
This commit is contained in:
parent
a2c24111ae
commit
93a8994e9f
1 changed files with 5 additions and 1 deletions
|
@ -367,7 +367,8 @@ class Notebook(SophonGroupModel):
|
|||
return
|
||||
|
||||
self.container_id = container.id
|
||||
# self.port = container.ports
|
||||
self.save()
|
||||
|
||||
return container
|
||||
|
||||
class ContainerError(Exception):
|
||||
|
@ -457,7 +458,10 @@ class Notebook(SophonGroupModel):
|
|||
},
|
||||
)
|
||||
|
||||
self.log.debug("Storing container_id in the SQL database...")
|
||||
self.container_id = container.id
|
||||
self.save()
|
||||
|
||||
return container
|
||||
|
||||
def stop_container(self) -> None:
|
||||
|
|
Loading…
Reference in a new issue