fix: try catch in volume auto remount
This commit is contained in:
parent
bbefb8124e
commit
85f62d4996
1 changed files with 5 additions and 1 deletions
|
|
@ -15,7 +15,11 @@ export class VolumeAutoRemountJob extends Job {
|
|||
|
||||
for (const volume of volumes) {
|
||||
if (volume.autoRemount) {
|
||||
await volumeService.mountVolume(volume.name);
|
||||
try {
|
||||
await volumeService.mountVolume(volume.name);
|
||||
} catch (err) {
|
||||
logger.error(`Failed to auto-remount volume ${volume.name}:`, err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue