diff options
author | Andrew Godwin | 2022-11-18 08:28:15 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-18 11:28:16 -0700 |
commit | 81de10b70c85c5222b17d8c4358a8aa8812f2559 (patch) | |
tree | 8e028b62d3a883294caedc82c5870f23273e2032 /stator | |
parent | 1b44a253316a84f40070264ea8134c86d1223441 (diff) | |
download | takahe-81de10b70c85c5222b17d8c4358a8aa8812f2559.tar.gz takahe-81de10b70c85c5222b17d8c4358a8aa8812f2559.tar.bz2 takahe-81de10b70c85c5222b17d8c4358a8aa8812f2559.zip |
Migration reset, start of docs, env vars
Diffstat (limited to 'stator')
-rw-r--r-- | stator/management/commands/runstator.py | 3 | ||||
-rw-r--r-- | stator/migrations/0001_initial.py | 2 |
2 files changed, 4 insertions, 1 deletions
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 |