~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to database/replication/helpers.py

  • Committer: Stuart Bishop
  • Date: 2011-08-05 14:28:23 UTC
  • mto: (7675.1045.680 db-devel)
  • mto: This revision was merged to the branch mainline in revision 13902.
  • Revision ID: stuart.bishop@canonical.com-20110805142823-8sp27c3iy43s65mx
docstring

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
 
155
155
    :param timeout: Number of seconds to wait for the sync. 0 to block
156
156
                    indefinitely.
 
157
 
 
158
    :param exit_on_fail: If True, on failure of the sync
 
159
                         SystemExit is raised using the slonik return code.
 
160
 
 
161
    :returns: True if the sync completed successfully. False if
 
162
              exit_on_fail is False and the script failed for any reason.
157
163
    """
158
164
    return execute_slonik("", sync=timeout, exit_on_fail=exit_on_fail)
159
165