Skip to content

Commit

Permalink
hotfix: clear_old_tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Friedjof committed Oct 11, 2024
1 parent 709fe50 commit 3ec57d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion LaundryTracker/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

# Import and run the command
from django.core.management import call_command
call_command('clear_old_tasks')

try:
call_command('clear_old_tasks')
except Exception as e:
print(e)
print('Failed to clear old tasks')

application = get_wsgi_application()

0 comments on commit 3ec57d6

Please sign in to comment.