2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 19:50:59 +00:00

Revert "Switch to registry for tasks" (#3803)

* Revert "Switch to registry for tasks (#3790)"

This reverts commit 0bea2c7b56.

* Remove decorator
This commit is contained in:
Oliver
2022-10-17 23:20:36 +11:00
committed by GitHub
parent 0bab40fe88
commit c1064906d6
5 changed files with 61 additions and 85 deletions

View File

@ -5,12 +5,9 @@ from datetime import datetime, timedelta
from django.core.exceptions import AppRegistryNotReady
from InvenTree.tasks import ScheduledTask, scheduled_task
logger = logging.getLogger('inventree')
@scheduled_task(ScheduledTask.DAILY)
def delete_old_notifications():
"""Remove old notifications from the database.