1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Start support for pruning old inbox data

This commit is contained in:
Thomas Sileo
2022-08-18 23:48:00 +02:00
parent 08618c3c72
commit 0ffacca796
3 changed files with 89 additions and 0 deletions

View File

@ -181,3 +181,11 @@ def build_docker_image(ctx):
# type: (Context) -> None
with embed_version():
run("docker build -t microblogpub/microblogpub .")
@task
def prune_old_data(ctx):
# type: (Context) -> None
from app.prune import run_prune_old_data
asyncio.run(run_prune_old_data())