Exemplo n.º 1
0
    def start_jobs(self):
        for j in jobs_list:
            self.state.jobs.append(j())

        self.state.onion_service_job = onion.OnionService()
        # The only service job currently is the OnionService
        self.state.services.append(self.state.onion_service_job)

        self.state.jobs_monitor = job.JobsMonitor(self.state.jobs)
Exemplo n.º 2
0
    def start_jobs(self):
        from globaleaks.jobs import jobs_list
        from globaleaks.services import onion
        from globaleaks.jobs.job import JobsMonitor

        for job in jobs_list:
            self.state.jobs.append(job())

        self.state.onion_service_job = onion.OnionService()
        # The only service job currently is the OnionService
        self.state.services.append(self.state.onion_service_job)

        self.state.jobs_monitor = JobsMonitor(self.state.jobs)