From b7df1ca3a7bbeed29f45c83f9572d296b010c0e4 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sat, 16 Nov 2024 02:49:01 -0800 Subject: [PATCH] add start orchestrator management command --- .../actors/management/commands/orchestrator.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 archivebox/actors/management/commands/orchestrator.py diff --git a/archivebox/actors/management/commands/orchestrator.py b/archivebox/actors/management/commands/orchestrator.py new file mode 100644 index 00000000..eb02e0f6 --- /dev/null +++ b/archivebox/actors/management/commands/orchestrator.py @@ -0,0 +1,18 @@ + + +from django.core.management.base import BaseCommand + +from actors.orchestrator import ArchivingOrchestrator + + +class Command(BaseCommand): + help = 'Run the archivebox orchestrator' + + # def add_arguments(self, parser): + # parser.add_argument('subcommand', type=str, help='The subcommand you want to run') + # parser.add_argument('command_args', nargs='*', help='Arguments to pass to the subcommand') + + + def handle(self, *args, **kwargs): + orchestrator = ArchivingOrchestrator() + orchestrator.start()