Changeset 11867dde


Ignore:
Timestamp:
May 24, 2010 3:21:42 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
0ea75d2
Parents:
4b68c58
Message:

Make the number of retries a parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/remote_service.py

    r4b68c58 r11867dde  
    276276    def __init__(self, service_name, request_message=None,
    277277            request_body_name=None, tracefile=None, strict=True,
    278             log=None):
     278            log=None, max_retries=None):
    279279        self.service_name = service_name
    280280
     
    304304        self.tracefile = tracefile
    305305        self.__call__ = self.call_service
    306         self.max_retries = 5
     306        if max_retries is not None: self.max_retries = max_retries
     307        else: self.max_retries = 5
    307308        self.log = log
    308309
Note: See TracChangeset for help on using the changeset viewer.