Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Revert "Add cronjob for maps deletion" #666

Closed
wants to merge 1 commit into from
Closed
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

This file was deleted.

18 changes: 0 additions & 18 deletions backend/migrations/2023-07-11-095000_map_cascading_deletes/up.sql

This file was deleted.

47 changes: 0 additions & 47 deletions backend/src/db/cronjobs.rs

This file was deleted.

1 change: 0 additions & 1 deletion backend/src/db/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//! Database extension and customization.

pub mod connection;
pub mod cronjobs;
pub mod function;
pub mod pagination;
7 changes: 0 additions & 7 deletions backend/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
use actix_cors::Cors;
use actix_web::{http, middleware::Logger, App, HttpServer};
use config::{api_doc, auth::Config, routes};
use db::{connection::Pool, cronjobs::cleanup_maps};
use log::info;

pub mod config;
Expand Down Expand Up @@ -86,7 +85,6 @@ async fn main() -> std::io::Result<()> {
);

let data = config::data::init(&config.database_url);
start_cronjobs(data.pool.clone());

HttpServer::new(move || {
App::new()
Expand Down Expand Up @@ -118,8 +116,3 @@ fn cors_configuration() -> Cors {
])
.max_age(3600)
}

/// Start all scheduled jobs that get run in the backend.
fn start_cronjobs(pool: Pool) {
tokio::spawn(cleanup_maps(pool));
}
4 changes: 2 additions & 2 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ Syntax: `- short text describing the change _(Your Name)_`
- _()_
- backend: add endpoint to generate the heatmap _(Gabriel)_
- UX: Revised existing error notifications and added new ones for other API calls _(Thorben)_
- CI: Cancel previous builds #557 _(4ydan)_
- backend: add scheduled task to remove maps #90 _(GabrielThorben)_
- _()_
- _()_

## 0.2.2 - 12.07.2023 (281 commits)

Expand Down
30 changes: 0 additions & 30 deletions doc/backend/05cronjobs.md

This file was deleted.

4 changes: 0 additions & 4 deletions doc/database/cronjobs.md

This file was deleted.