def __init__(self, service):
        Job.__init__(self, memory=service.memory, cores=service.cores, disk=service.disk,
                     preemptable=service.preemptable)
        # service.__module__ is the module defining the class service is an instance of.
        self.serviceModule = ModuleDescriptor.forModule(service.__module__).globalize()

        #The service to run, pickled
        childServices = service._childServices
        service._childServices = [] #Ensure we don't pickle the children
        self.pickledService = cPickle.dumps(service)
        service._childServices = childServices

        # This references the parent job wrapper. It is initialised just before
        # the job is run. It is used to access the start and terminate flags.
        self.jobWrapper = None
Hook for registering custom callbacks for dispatch patterns
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/job.py/ServiceJob.__init__--crossover with--dataset/ETHPy150Open coleifer/irc/irc.py/IRCConnection.register_callbacks