Skip to content

Commit

Permalink
reduced error retry to 3 times
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Meyer committed Mar 26, 2018
1 parent eb4e08b commit 3200296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion trufflepig/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
NODE_URL5 = os.environ.get('STEEM_NODE_URL5', 'steemd.pevo.science')
NODE_URL6 = os.environ.get('STEEM_NODE_URL6', 'rpc.curiesteem.com')
NODE_URL7 = os.environ.get('STEEM_NODE_URL7', 'seed.bitcoiner.me')
NODE_URL8 = os.environ.get('STEEM_NODE_URL8', 'steemd.steemitstage.com')
NODES = [x for x in (NODE_URL, NODE_URL2, NODE_URL3,
NODE_URL4, NODE_URL5, NODE_URL6,
NODE_URL7) if x]
NODE_URL7, NODE_URL8) if x]

# The steemit bot account and password
ACCOUNT = os.environ.get('STEEM_ACCOUNT', 'trufflepig')
Expand Down
2 changes: 1 addition & 1 deletion trufflepig/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def configure_logging(directory, current_datetime, bot_account='trufflepig'):
handlers=handlers)


def error_retry(f, retries=16, sleep_time=16, errors=(RPCError,),
def error_retry(f, retries=3, sleep_time=11, errors=(RPCError,),
not_log_errors=(PostDoesNotExist,)):
"""Explicit decorator for Error retries"""
def wrapped(*args, **kwargs):
Expand Down

0 comments on commit 3200296

Please sign in to comment.