def __init__(self, name, tracker_url, tracker_command, may_be_canceled=False): Task.__init__(self, name) self.http_client = AsyncHTTPClient() self.tracker_url = tracker_url self.tracker_command = tracker_command self.retry_delay = 30 self._set_may_be_canceled = may_be_canceled
def __init__(self, name, args, max_tries=1, retry_delay=30, accept_on_exit_code=[0], retry_on_exit_code=None, env=None): Task.__init__(self, name) self.args = args self.max_tries = max_tries self.retry_delay = retry_delay self.accept_on_exit_code = accept_on_exit_code self.retry_on_exit_code = retry_on_exit_code self.env = env
def __init__(self, args, retry_delay=30, max_tries=1, accept_on_exit_code=[0], retry_on_exit_code=None, env=None, stdin_data_function=None): Task.__init__(self, "WgetDownloadTorrentRange") self.args = args self.max_tries = max_tries self.accept_on_exit_code = accept_on_exit_code self.retry_on_exit_code = retry_on_exit_code self.env = env self.stdin_data_function = stdin_data_function self.retry_delay = retry_delay
def __init__(self, args, urls, retry_delay=30, max_tries=1, accept_on_exit_code=[0], retry_on_exit_code=None, env=None, stdin_data_function=None): Task.__init__(self, "WgetDownloadMany") self.args = args self.max_tries = max_tries self.accept_on_exit_code = accept_on_exit_code self.retry_on_exit_code = retry_on_exit_code self.env = env self.stdin_data_function = stdin_data_function self.unrealized_urls = urls self.retry_delay = retry_delay
def __init__(self, name, tracker_url, tracker_command, may_be_canceled=False): Task.__init__(self, name) self.http_client = AsyncHTTPClient() self.tracker_url = tracker_url self.tracker_command = tracker_command self.retry_delay = self.DEFAULT_RETRY_DELAY self._set_may_be_canceled = may_be_canceled
def __init__(self, name, args, max_tries=1, retry_delay=30, accept_on_exit_code=None, retry_on_exit_code=None, env=None): Task.__init__(self, name) self.args = args self.max_tries = max_tries self.retry_delay = retry_delay if accept_on_exit_code is not None: self.accept_on_exit_code = accept_on_exit_code else: self.accept_on_exit_code = [0] self.retry_on_exit_code = retry_on_exit_code self.env = env or {} if 'PYTHONIOENCODING' not in self.env: self.env['PYTHONIOENCODING'] = 'utf8:replace'
def __init__(self, name, args, max_tries=1, retry_delay=2, accept_on_exit_code=None, retry_on_exit_code=None, env=None): Task.__init__(self, name) self.args = args self.max_tries = max_tries self.retry_delay = retry_delay if accept_on_exit_code is not None: self.accept_on_exit_code = accept_on_exit_code else: self.accept_on_exit_code = [0] self.retry_on_exit_code = retry_on_exit_code self.env = env or {} if 'PYTHONIOENCODING' not in self.env: self.env['PYTHONIOENCODING'] = 'utf8:replace'
def __init__(self): Task.__init__(self, 'ChooseTargetAndUpload') self.retry_sleep = 10
def __init__(self): Task.__init__(self, 'IdleTask')
def __init__(self): Task.__init__(self, 'WarningTask')