From 81de10b70c85c5222b17d8c4358a8aa8812f2559 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 18 Nov 2022 08:28:15 -0700 Subject: Migration reset, start of docs, env vars --- stator/management/commands/runstator.py | 3 +++ stator/migrations/0001_initial.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'stator') diff --git a/stator/management/commands/runstator.py b/stator/management/commands/runstator.py index a77192e..eaa2585 100644 --- a/stator/management/commands/runstator.py +++ b/stator/management/commands/runstator.py @@ -4,6 +4,7 @@ from asgiref.sync import async_to_sync from django.apps import apps from django.core.management.base import BaseCommand +from core.models import Config from stator.models import StatorModel from stator.runner import StatorRunner @@ -22,6 +23,8 @@ class Command(BaseCommand): parser.add_argument("model_labels", nargs="*", type=str) def handle(self, model_labels: List[str], concurrency: int, *args, **options): + # Cache system config + Config.system = Config.load_system() # Resolve the models list into names models = cast( List[Type[StatorModel]], diff --git a/stator/migrations/0001_initial.py b/stator/migrations/0001_initial.py index f7d652e..8dcfc07 100644 --- a/stator/migrations/0001_initial.py +++ b/stator/migrations/0001_initial.py @@ -1,4 +1,4 @@ -# Generated by Django 4.1.3 on 2022-11-10 05:56 +# Generated by Django 4.1.3 on 2022-11-18 17:49 from django.db import migrations, models -- cgit v1.2.3