]> Untitled Git - lemmy.git/commit
Adding some recurring lemmy tasks. (#1386)
authorDessalines <dessalines@users.noreply.github.com>
Fri, 29 Jan 2021 16:38:27 +0000 (11:38 -0500)
committerGitHub <noreply@github.com>
Fri, 29 Jan 2021 16:38:27 +0000 (11:38 -0500)
commit0fd0279543be156450818a4b8db4f5dee7600f48
treed4e2db345e7490600f7edb830194e2572b4a494e
parentf5e58c8bf5aaed4f388c86c6b16d754d7817b817
Adding some recurring lemmy tasks. (#1386)

* Adding some recurring lemmy tasks.

- Add active users by day, week, month, and half year to site and
  community. Fixes #1195
- Periodically re-index the aggregates tables that use hot_rank.
  Fixes #1384
- Clear out old activities (> 6 months). Fixes #1133

* Some cleanup, recalculating actives every hour.
12 files changed:
Cargo.lock
Cargo.toml
crates/db_queries/src/aggregates/community_aggregates.rs
crates/db_queries/src/aggregates/site_aggregates.rs
crates/db_queries/src/source/activity.rs
crates/db_schema/src/schema.rs
migrations/2021-01-27-202728_active_users_monthly/down.sql [new file with mode: 0644]
migrations/2021-01-27-202728_active_users_monthly/up.sql [new file with mode: 0644]
src/lib.rs
src/main.rs
src/routes/nodeinfo.rs
src/scheduled_tasks.rs [new file with mode: 0644]