Ack SLA requests immediately
This commit is contained in:
@@ -607,6 +607,7 @@ async def incidents_export(msg: Message):
|
|||||||
async def backup_sla(msg: Message):
|
async def backup_sla(msg: Message):
|
||||||
if not is_admin_msg(msg):
|
if not is_admin_msg(msg):
|
||||||
return
|
return
|
||||||
|
await msg.answer("⏳ Checking Backup SLA…", reply_markup=backup_kb)
|
||||||
rc, out = await run_cmd_full(["restic", "snapshots", "--json"], use_restic_env=True, timeout=40)
|
rc, out = await run_cmd_full(["restic", "snapshots", "--json"], use_restic_env=True, timeout=40)
|
||||||
if rc != 0:
|
if rc != 0:
|
||||||
await msg.answer(f"⚠️ Restic error: {out.strip() or rc}", reply_markup=backup_kb)
|
await msg.answer(f"⚠️ Restic error: {out.strip() or rc}", reply_markup=backup_kb)
|
||||||
@@ -724,6 +725,7 @@ async def openwrt_leases_diff(msg: Message):
|
|||||||
async def queue_sla(msg: Message):
|
async def queue_sla(msg: Message):
|
||||||
if not is_admin_msg(msg):
|
if not is_admin_msg(msg):
|
||||||
return
|
return
|
||||||
|
await msg.answer("⏳ Calculating Queue SLA…", reply_markup=backup_kb)
|
||||||
hist = get_history_raw()
|
hist = get_history_raw()
|
||||||
if not hist:
|
if not hist:
|
||||||
await msg.answer("🧾 Queue SLA: history is empty", reply_markup=backup_kb)
|
await msg.answer("🧾 Queue SLA: history is empty", reply_markup=backup_kb)
|
||||||
|
|||||||
Reference in New Issue
Block a user