v6_api background jobs and harvesters

v6_api background jobs and harvesters An architecture diagram generated by Archify. purge_account · daily 00:00 · unvalidated users · scheduler: maintenance jobs purge_account daily 00:00 · unvalidated users purge_token · hourly :30 · expired tokens · scheduler: maintenance jobs purge_token hourly :30 · expired tokens purge_deleted_documents · daily 01:00 · trash retention · scheduler: maintenance jobs purge_deleted_documents daily 01:00 · trash retention process_removals · hourly :15 · removals.auto on · scheduler: maintenance jobs process_removals hourly :15 · removals.auto on harvest_tick · every minute · one at a time · scheduler: harvest tick (harvest/runner.py) · if a harvester is on harvest_tick every minute · one at a time if a harvester is on prune_harvest · daily 02:00 · old payloads, bulletins · Architecture component prune_harvest daily 02:00 · old payloads, bulletins compact_avalanche_bulletins · 1st of month 03:00 · > 18 months · Architecture component compact_avalanche_bulletins 1st of month 03:00 · > 18 months sync_sources · every 10 min: add, disable, drop · Architecture component sync_sources every 10 min: add, disable, drop claim due sources · SKIP LOCKED · lease 10 min · ≤ 60 · scheduler: harvest tick (harvest/runner.py) claim due sources SKIP LOCKED · lease 10 min · ≤ 60 lanes by host · 4 threads · 2 lanes per host · scheduler: harvest tick (harvest/runner.py) lanes by host 4 threads · 2 lanes per host run_source · conditional GET · SHA-256 · store · scheduler: harvest tick (harvest/runner.py) run_source conditional GET · SHA-256 · store policy.next_run · windows · season · backoff · Architecture component policy.next_run windows · season · backoff MeteoFranceHarvester · 35 massifs · ≤ 40 a minute · Architecture component MeteoFranceHarvester 35 massifs · ≤ 40 a minute CaamlHarvester · a file by service and language · Architecture component CaamlHarvester a file by service and language PartnerHarvester ×6 · partners.<name> · metaskirando · Architecture component · click: partner outings PartnerHarvester ×6 partners.<name> · metaskirando click: partner outings Partner sites · skitour.fr, gulliver.it +4 · Architecture component Partner sites skitour.fr, gulliver.it +4 partner_* · outings · sources · lookups · tracks · Architecture component partner_* outings · sources · lookups · tracks Next harvester · a Harvester subclass · Architecture component · plug in here Next harvester a Harvester subclass plug in here Météo-France DPBRA · public-api.meteofrance.fr · Architecture component Météo-France DPBRA public-api.meteofrance.fr EAWS CAAML v6 files · SLF, avalanche.report, AINEVA… · Architecture component EAWS CAAML v6 files SLF, avalanche.report, AINEVA… Next service · weather stations, webcams… · Architecture component Next service weather stations, webcams… harvest_sources · + _payloads: state, contents · Architecture component harvest_sources + _payloads: state, contents avalanche_bulletins · + _regions: danger by day · Architecture component avalanche_bulletins + _regions: danger by day region_weather_* · hours, periods: SLF weather · Architecture component region_weather_* hours, periods: SLF weather Next tables · models/ + alembic migration · Architecture component Next tables models/ + alembic migration user · token · deleted_documents · documents · Architecture component user · token deleted_documents · documents Redis queue · ES sync notifications · Architecture component Redis queue ES sync notifications ES syncer process · make run-syncer · kombu consumer · Architecture component · long-running, not scheduled ES syncer process make run-syncer · kombu consumer long-running, not scheduled Elasticsearch · search index · Architecture component Elasticsearch search index Discourse forum · admin API · Architecture component Discourse forum admin API SMTP relay · removal emails · Architecture component SMTP relay removal emails delete users delete tokens log out delete rows purge, merge forum account emails notify sync consume bulk index changed docs every 10 min claim sources SKIP LOCKED due sources a lane a worker fetch, store fetch, store fetch, store fetch: run_source next_run_at payload, state conditional GET conditional GET conditional GET store(session) old payloads superseded drop customData save save SLF weather JSON / HTML upsert scheduler: maintenance jobs scheduler: harvest tick (harvest/runner.py) Legend Backend Database Message bus External

Architecture Diagnosis

Built into Archify, runs locally

Ask your AI assistant:

Use Archify to create an architecture diagram for this project and start Architecture Diagnosis.