chore: pr feedbacks

This commit is contained in:
Nicolas Meienberger 2026-02-21 11:13:27 +01:00
parent 94f1028da0
commit 06ba7f3948

View file

@ -15,12 +15,16 @@ export class VolumeHealthCheckJob extends Job {
});
for (const volume of volumes) {
await withContext({ organizationId: volume.organizationId }, async () => {
const { status } = await volumeService.checkHealth(volume.shortId);
if (status === "error" && volume.autoRemount) {
await volumeService.mountVolume(volume.shortId);
}
});
try {
await withContext({ organizationId: volume.organizationId }, async () => {
const { status } = await volumeService.checkHealth(volume.shortId);
if (status === "error" && volume.autoRemount) {
await volumeService.mountVolume(volume.shortId);
}
});
} catch (error) {
logger.error(`Health check failed for volume ${volume.name}:`, error);
}
}
return { done: true, timestamp: new Date() };