Add infrastructure to clear sessions

This commit is contained in:
Nicolas Setton
2018-07-22 19:28:58 -04:00
parent d3959e2ec6
commit 7eba699b2e

View File

@@ -0,0 +1,11 @@
import os
from django.core.management.base import BaseCommand
from compile_server.app.models import ProgramRun
from compile_server.app import process_handling
class Command(BaseCommand):
def handle(self, *args, **options):
process_handling.cleanup_old_processes()