mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-16 13:28:29 +00:00
add start orchestrator management command
This commit is contained in:
parent
2291f02147
commit
b7df1ca3a7
1 changed files with 18 additions and 0 deletions
18
archivebox/actors/management/commands/orchestrator.py
Normal file
18
archivebox/actors/management/commands/orchestrator.py
Normal file
|
@ -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()
|
Loading…
Add table
Reference in a new issue