refactor(v0.4): route session-lifecycle and archive task.yaml writes through write lock
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ func runOpen(cmd *cobra.Command, args []string) error {
|
||||
now := time.Now().UTC().Truncate(time.Second)
|
||||
ws.Meta.UpdatedAt = now
|
||||
metaPath := filepath.Join(ws.Path, "task.yaml")
|
||||
if err := workspace.WriteMeta(metaPath, ws.Meta); err != nil {
|
||||
if err := workspace.WriteMetaLocked(metaPath, ws.Meta); err != nil {
|
||||
return fmt.Errorf("updating metadata: %w", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user