def main_work_horse(self, job):
        # After fork()'ing, always assure we are generating random sequences
        # that are different from the worker.
        random.seed()

        # Always ignore Ctrl+C in the work horse, as it might abort the
        # currently running job.
        # The main worker catches the Ctrl+C and requests graceful shutdown
        # after the current work is done.  When cold shutdown is requested, it
        # kills the current job anyway.
        signal.signal(signal.SIGINT, signal.SIG_IGN)
        signal.signal(signal.SIGTERM, signal.SIG_DFL)

        self._is_horse = True
        self.log = logger

        success = self.perform_job(job)

        # os._exit() is the way to exit from childs after a fork(), in
        # constrast to the regular sys.exit()
        os._exit(int(not success))
Test function for pulse(): SISO 1/6
dataset/ETHPy150Open bretth/django-pq/pq/worker.py/Worker.main_work_horse--crossover with--dataset/ETHPy150Open ggventurini/python-deltasigma/deltasigma/tests/test_pulse.py/TestPulse.test_pulse1