chore: sync running docker state
Commit the app code currently running in Docker, including scheduler, store status, journal reminder, maintenance mode, and Foodsharing API check updates. Remove generated runtime logs from version control and ignore local runtime captures.
This commit is contained in:
@@ -351,6 +351,22 @@ async function sendAdminSessionErrorNotification({
|
||||
});
|
||||
}
|
||||
|
||||
async function sendAdminMaintenanceModeNotification({ reason, activatedAt, errorThreshold, errorWindowMinutes }) {
|
||||
const messageLines = [
|
||||
'Der Wartungsmodus wurde automatisch aktiviert.',
|
||||
activatedAt ? `Aktiv seit: ${formatDateLabel(activatedAt)}.` : null,
|
||||
Number.isFinite(errorThreshold) && Number.isFinite(errorWindowMinutes)
|
||||
? `Schwelle: ${errorThreshold} relevante Fehler in ${errorWindowMinutes} Minuten.`
|
||||
: null,
|
||||
reason ? `Grund: ${reason}.` : null
|
||||
].filter(Boolean);
|
||||
await sendAdminTelegramNotification({
|
||||
title: 'Wartungsmodus aktiviert',
|
||||
message: messageLines.join('\n'),
|
||||
priority: 'high'
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
sendSlotNotification,
|
||||
sendStoreWatchNotification,
|
||||
@@ -360,5 +376,6 @@ module.exports = {
|
||||
sendDormantPickupWarning,
|
||||
sendJournalReminderNotification,
|
||||
sendAdminBookingErrorNotification,
|
||||
sendAdminSessionErrorNotification
|
||||
sendAdminSessionErrorNotification,
|
||||
sendAdminMaintenanceModeNotification
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user