Skip to content

Commit cee4cd6

Browse files
committed
Don't panic if there is not apropriate storage
1 parent 584112a commit cee4cd6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

workflows/misc/slow_move_files.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ func MoveFilesWorkerFlow(ctx workflow.Context) error {
181181
shapePath := s.GetPath()
182182
storage := FindStorageForPath(shapePath)
183183

184+
if storage == nil {
185+
workflow.GetLogger(ctx).Error("Failed to find storage for path, skipping", "path", shapePath, "vxid", msg.VXID)
186+
continue
187+
}
188+
184189
if storage.Name == "Archive" {
185190
workflow.GetLogger(ctx).Debug("Skipping archive path", "path", shapePath)
186191
continue

0 commit comments

Comments
 (0)