orchestrator.py 536 B

123456789101112131415161718
  1. from django.core.management.base import BaseCommand
  2. from workers.orchestrator import ArchivingOrchestrator
  3. class Command(BaseCommand):
  4. help = 'Run the archivebox orchestrator'
  5. # def add_arguments(self, parser):
  6. # parser.add_argument('subcommand', type=str, help='The subcommand you want to run')
  7. # parser.add_argument('command_args', nargs='*', help='Arguments to pass to the subcommand')
  8. def handle(self, *args, **kwargs):
  9. orchestrator = ArchivingOrchestrator()
  10. orchestrator.start()