Skip to content

Commit

Permalink
whitespace"
Browse files Browse the repository at this point in the history
  • Loading branch information
adgaudio committed Dec 16, 2014
1 parent 136fdeb commit 83f838a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions stolos/tests/test_api.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from nose import tools as nt
# from nose import tools as nt

from stolos import api
from stolos.testing_tools import configure_logging
log = configure_logging('stolos.tests.test_dag')
# from stolos import api
# from stolos.testing_tools import configure_logging
# log = configure_logging('stolos.tests.test_dag')


# TODO
11 changes: 6 additions & 5 deletions stolos/zookeeper_maintenance.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from __future__ import unicode_literals
from os.path import join, dirname
from os.path import join
import re
import sys
import kazoo.exceptions
Expand All @@ -12,9 +12,9 @@ def delete(app_name, job_id, zk, confirm=True,
"""Delete Zookeeper data for one or more specific jobs.
In general, this operation is unsafe. Deleting nodes that another process
is currently reading from or otherwise aware of has unknown effects. If you
use this, you should to guarantee that no other processes are accessing the
jobs.
is currently reading from or otherwise aware of has unknown effects. If
you use this, you should to guarantee that no other processes are accessing
the jobs.
It's highly recommended that you don't use this for anything other than
clearing out old zookeeper nodes.
Expand All @@ -24,7 +24,8 @@ def delete(app_name, job_id, zk, confirm=True,
the node's state, including locks and retry count, from zookeeper.
`delete_from_queue` (bool) In general, you should delete_from_queue if
you are deleting a node's state, but you can set this to False if
you know ahead of time that the job(s) you are deleteing are not queued.
you know ahead of time that the job(s) you are deleteing are not
queued.
`dryrun` (bool) don't actually delete nodes
"""
Expand Down

0 comments on commit 83f838a

Please sign in to comment.