Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ Picks the highest-level, highest-ilvl alt per faction (Alliance + Horde) and fet
### Data scan (`fullDataScan` Celery task)
Dispatches six independent subtasks: `scanProfessionData`, `scanMountData`, `scanPetData`, `scanAchievementData`, `scanFactionData`, `scanMythicDungeonData`. Each can also be triggered individually via its own endpoint. The dungeon index requires `namespace=dynamic-eu` (not `static-eu` like other catalogs).

### Scheduled tasks (`CELERY_BEAT_SCHEDULE` in `settings.py`)
- `purge_stale_profiles` — daily, deletes expired profile records.
- `fullDataScan` — weekly, Sunday 03:00 UTC, with `BLIZZ_CLIENT`/`BLIZZ_SECRET` baked into the schedule args at startup. The admin-triggered `/api/custom/datascan/` endpoints still work for ad-hoc/manual scans (e.g. testing a single category).

### Lua addon file
`ProfileUser.perform_update` validates and stores a `FazzToolsScraper.lua` addon export.
`ProfileUserView.list` with `?page=header` returns the last-update timestamp; the file is parsed via `LuaParser` and cached on read (`userfile:{user_id}`), ready for future addon-only data (gold, currencies, lockouts) to consume — no page handler reads it yet.
Expand Down
6 changes: 6 additions & 0 deletions backend/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pathlib import Path

import environ
from celery.schedules import crontab

env = environ.Env()
environ.Env.read_env()
Expand Down Expand Up @@ -111,6 +112,11 @@
"task": "apicore.tasks.purge_stale_profiles",
"schedule": 86400,
},
"full-data-scan-weekly": {
"task": "apicore.tasks.fullDataScan",
"schedule": crontab(day_of_week="sunday", hour=3, minute=0),
"args": (env("BLIZZ_CLIENT"), env("BLIZZ_SECRET")),
},
}

REST_FRAMEWORK = {
Expand Down
Loading