Add a generic job scheduler

Also rewrite deletion of old sends using the job scheduler.
This commit is contained in:
Jeremy Lin
2021-04-02 20:16:49 -07:00
parent a82c04910f
commit 73ff8d79f7
9 changed files with 126 additions and 31 deletions

View File

@@ -10,8 +10,8 @@ use serde_json::Value;
pub use crate::api::{
admin::routes as admin_routes,
core::purge_sends,
core::routes as core_routes,
core::start_send_deletion_scheduler,
icons::routes as icons_routes,
identity::routes as identity_routes,
notifications::routes as notifications_routes,