refactor(v0.4): route session-lifecycle and archive task.yaml writes through write lock
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ func runArchive(cmd *cobra.Command, args []string) error {
|
||||
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