Cleanup tasks

This commit is contained in:
Ben Grant 2021-06-16 04:14:35 +10:00
parent 397a98ffd4
commit 180ae1f444
6 changed files with 156 additions and 1 deletions

View file

@ -217,3 +217,29 @@ paths:
description: "Not found"
400:
description: "Invalid data"
"/tasks/cleanup":
get:
summary: "Delete events inactive for more than 3 months"
operationId: "taskCleanup"
tags:
- tasks
responses:
200:
description: "OK"
404:
description: "Not found"
400:
description: "Not called from a cron job"
"/tasks/legacyCleanup":
get:
summary: "Delete events inactive for more than 3 months that don't have a visited date"
operationId: "taskLegacyCleanup"
tags:
- tasks
responses:
200:
description: "OK"
404:
description: "Not found"
400:
description: "Not called from a cron job"