def __getstate__(self): sdict = CallbackHolder.__getstate__(self) if sdict['done_tag']: sdict['done_tag'] = sdict['done_tag'].name job_done_tag = sdict['job_done_tag'] = sdict['job_done_tag'].copy() for job_id, tag in job_done_tag.iteritems(): job_done_tag[job_id] = tag.name if sdict['files_sharing']: sdict['files_sharing'] = True sdict['files_modified'] = True return sdict
def __init__(self): CallbackHolder.__init__(self) KillableWorker.__init__(self, name_prefix='TimeTicker')