]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
move the constants from worker.py to constants.py
authorAlfredo Deza <adeza@redhat.com>
Tue, 20 Jan 2015 14:20:11 +0000 (09:20 -0500)
committerAlfredo Deza <adeza@redhat.com>
Wed, 28 Jan 2015 18:43:03 +0000 (13:43 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
radosgw_agent/worker.py

index 5547ad687142445649bfaeb3feb549c6a99672bc..8731f50926ecc48fd4ea67a461657e6861c8647b 100644 (file)
@@ -8,13 +8,10 @@ import time
 from radosgw_agent import client
 from radosgw_agent import lock
 from radosgw_agent.exceptions import SkipShard, SyncError, SyncTimedOut, SyncFailed, NotFound, BucketEmpty
+from radosgw_agent.constants import DEFAULT_TIME, RESULT_SUCCESS, RESULT_ERROR
 
 log = logging.getLogger(__name__)
 
-RESULT_SUCCESS = 0
-RESULT_ERROR = 1
-
-DEFAULT_TIME = '1970-01-01 00:00:00'
 
 class Worker(multiprocessing.Process):
     """sync worker to run in its own process"""