KI-Tracking vollständig, Cloud-Limit 20/Woche, Statusmail täglich 06:00 — SW by-v434, APP_VER 413
- ki.complete() zählt sich selbst (user_id-Parameter, _track_usage) - CLOUD_WEEKLY_LIMIT=20, geprüft vor jedem Cloud-Call - user_id durchgereicht in health, diary, knigge, notes, ki-route - Admin-Panel: 7-Tage-Ansicht, Limit-Info, Top-Cloud-User-Tabelle - Statusmail täglich 06:00 CEST statt alle 2h
This commit is contained in:
parent
85836e4e6e
commit
570dcd4e93
11 changed files with 135 additions and 78 deletions
|
|
@ -92,10 +92,10 @@ def start():
|
|||
replace_existing=True,
|
||||
misfire_grace_time=3600,
|
||||
)
|
||||
# Alle 2 Stunden Status-Report per Mail
|
||||
# Täglich 06:00 Uhr Status-Report per Mail
|
||||
_scheduler.add_job(
|
||||
_job_status_report,
|
||||
CronTrigger(minute=0, hour="*/2"),
|
||||
CronTrigger(hour=6, minute=0),
|
||||
id="status_report",
|
||||
replace_existing=True,
|
||||
misfire_grace_time=1800,
|
||||
|
|
@ -109,7 +109,7 @@ def start():
|
|||
misfire_grace_time=3600,
|
||||
)
|
||||
_scheduler.start()
|
||||
logger.info("Scheduler gestartet — Health-Reminder 08:00, Giftköder-Archiv 03:00, Wetter-Alert 07:30, Meilenstein-Check 00:05, Event-Import So 02:00, Rassen-Seed monatlich 1. des Monats. OSM-Cache: on-demand (kein Prewarm).")
|
||||
logger.info("Scheduler gestartet — Health-Reminder 08:00, Giftköder-Archiv 03:00, Wetter-Alert 07:30, Meilenstein-Check 00:05, Event-Import So 02:00, Rassen-Seed monatlich 1. des Monats, Status-Report täglich 06:00. OSM-Cache: on-demand (kein Prewarm).")
|
||||
|
||||
|
||||
def stop():
|
||||
|
|
@ -642,7 +642,7 @@ async def _job_ki_health_report():
|
|||
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# JOB: Status-Report per Mail (4× täglich)
|
||||
# JOB: Status-Report per Mail (täglich 06:00 Uhr)
|
||||
# ------------------------------------------------------------------
|
||||
async def _job_status_report():
|
||||
"""Sendet einen HTML-Status-Report an ADMIN_EMAIL."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue