You've already forked code_examples_server
mirror of
https://github.com/AdaCore/code_examples_server.git
synced 2026-02-12 12:45:18 -08:00
Add infrastructure to clear sessions
This commit is contained in:
11
compile_server/app/management/commands/clear_sessions.py
Normal file
11
compile_server/app/management/commands/clear_sessions.py
Normal 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()
|
||||
Reference in New Issue
Block a user