|
@@ -22,13 +22,11 @@ class RunCommand(Command):
|
|
Argument("-e", "--stderr", nargs=1, help="Crée le server dans un autre processus"),
|
|
Argument("-e", "--stderr", nargs=1, help="Crée le server dans un autre processus"),
|
|
Argument("-b", "--bind", help="Adresse d'écoute du serveur exemple localhost:8080", default="0.0.0.0:8000"),
|
|
Argument("-b", "--bind", help="Adresse d'écoute du serveur exemple localhost:8080", default="0.0.0.0:8000"),
|
|
Argument("-C", "--no-cron", action="store_true", help="Ne pas lancer le cron"),
|
|
Argument("-C", "--no-cron", action="store_true", help="Ne pas lancer le cron"),
|
|
-
|
|
|
|
]
|
|
]
|
|
|
|
|
|
def start_cron(self, hostname):
|
|
def start_cron(self, hostname):
|
|
self.cron = CronCommand.thread_run(CommandData(url=f"http://{hostname}"))
|
|
self.cron = CronCommand.thread_run(CommandData(url=f"http://{hostname}"))
|
|
|
|
|
|
-
|
|
|
|
def wait_cron_ends(self):
|
|
def wait_cron_ends(self):
|
|
self.cron.join()
|
|
self.cron.join()
|
|
|
|
|