def __init__( self, track_type, period, group, begin_time=None, end_time=None, log=None,**kargs ): Work.__init__( self,period=period, group=group, begin_time=begin_time, end_time=end_time, log=log, name="" ) self.track_type_ = track_type self.timeout_items_ = {} self.delivered_items_ = {} self.tracking_items_ = {} self.proxy_ = None if kargs is not None and "proxy" in kargs: self.proxy_ = kargs["proxy"] self.redo_counter_ = sys.maxsize
def __init__(self, item_id, group, proxy=None, begin_time=None, period=None, log=None): Work.__init__( self, period=period, group=group, begin_time=begin_time, log=log, name="TntWork|%s" % item_id) self.fetcher_ = fetcher_tnt.FetcherTnt(item_id=item_id, log=log) self.proxy_ = proxy
def __init__(self,seq): Work.__init__(self, name = "test_work") self.seq = seq