Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
94670581
Commit
94670581
authored
May 06, 2015
by
Giorgos Korfiatis
Browse files
pep8 fixes
parent
9bf1e27b
Changes
2
Hide whitespace changes
Inline
Side-by-side
agkyra/agkyra/syncer/pithos_client.py
View file @
94670581
...
...
@@ -194,7 +194,7 @@ class PithosTargetHandle(object):
@
handle_client_errors
@
give_heartbeat
def
pull
(
self
,
source_handle
,
sync_state
):
#
assert isinstance(source_handle, LocalfsSourceHandle)
#
assert isinstance(source_handle, LocalfsSourceHandle)
info
=
sync_state
.
info
etag
=
info
.
get
(
"pithos_etag"
)
try
:
...
...
agkyra/agkyra/syncer/syncer.py
View file @
94670581
...
...
@@ -107,7 +107,7 @@ class FileSyncer(object):
beat
=
hb
.
get
(
objname
)
if
beat
is
not
None
:
if
utils
.
younger_than
(
beat
[
"tstamp"
],
self
.
settings
.
action_max_wait
):
beat
[
"tstamp"
],
self
.
settings
.
action_max_wait
):
logger
.
warning
(
"Object '%s' already handled; "
"Probe aborted."
%
objname
)
return
...
...
@@ -372,7 +372,6 @@ class FileSyncer(object):
time
.
sleep
(
interval
)
return
utils
.
start_daemon
(
DecideThread
)
# TODO cleanup db of objects deleted in all clients
# def cleanup(self):
# db = self.get_db()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment