Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add cronjob that clears old tasks every midnight #3066

Merged
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from contentcuration.utils.garbage_collect import clean_up_contentnodes
from contentcuration.utils.garbage_collect import clean_up_deleted_chefs
from contentcuration.utils.garbage_collect import clean_up_feature_flags
from contentcuration.utils.garbage_collect import clean_up_tasks


class Command(BaseCommand):
Expand All @@ -23,3 +24,4 @@ def handle(self, *args, **options):
clean_up_contentnodes()
clean_up_deleted_chefs()
clean_up_feature_flags()
clean_up_tasks()
215 changes: 0 additions & 215 deletions contentcuration/contentcuration/tests/test_garbage_collect.py

This file was deleted.

156 changes: 0 additions & 156 deletions contentcuration/contentcuration/tests/test_garbage_collection.py

This file was deleted.

Loading