diff options
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 |