mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Hound
This commit is contained in:
parent
8eb5524d64
commit
ef1f94aecc
2 changed files with 13 additions and 14 deletions
|
|
@ -97,10 +97,9 @@ class SyncServer():
|
|||
try:
|
||||
self.presets = config.get_presets()["services"]["sync_server"]
|
||||
except KeyError:
|
||||
log.debug((
|
||||
"There are not set presets for SyncServer."
|
||||
" No credentials provided, no synching possible"
|
||||
).format(str(self.presets)))
|
||||
log.debug(("There are not set presets for SyncServer."
|
||||
" No credentials provided, no synching possible").
|
||||
format(str(self.presets)))
|
||||
self.sync_server_thread = SynchServerThread(self)
|
||||
|
||||
@timeit
|
||||
|
|
@ -185,8 +184,8 @@ class SyncServer():
|
|||
if tries < self.RETRY_CNT:
|
||||
return SyncStatus.DO_UPLOAD
|
||||
else:
|
||||
_, local_rec = self._get_provider_rec(sites, self.LOCAL_ID) \
|
||||
or {}
|
||||
_, local_rec = self._get_provider_rec(sites, self.LOCAL_ID)\
|
||||
or {}
|
||||
if not local_rec or not local_rec.get("created_dt"):
|
||||
tries = self._get_tries_count_from_rec(local_rec)
|
||||
# file will be skipped if unsuccessfully tried over
|
||||
|
|
|
|||
|
|
@ -80,11 +80,11 @@ class TestPerformance():
|
|||
file_id3 = bson.objectid.ObjectId()
|
||||
|
||||
self.inserted_ids.extend([file_id, file_id2, file_id3])
|
||||
version_str = "v{0:03}".format(i+1)
|
||||
version_str = "v{0:03}".format(i + 1)
|
||||
file_name = "test_Cylinder_workfileLookdev_{}.mb".\
|
||||
format(version_str)
|
||||
|
||||
document = {"files": self.get_files(self.version, i+1,
|
||||
document = {"files": self.get_files(self.version, i + 1,
|
||||
file_id, file_id2, file_id3,
|
||||
create_files)
|
||||
,
|
||||
|
|
@ -188,8 +188,8 @@ class TestPerformance():
|
|||
create_files=False):
|
||||
ret = [
|
||||
{
|
||||
"path": "{root}" + "/Test/Assets/Cylinder/publish/workfile/"
|
||||
"workfileLookdev/v{0:03}/"
|
||||
"path": "{root}" + "/Test/Assets/Cylinder/publish/workfile/" +
|
||||
"workfileLookdev/v{0:03}/" +
|
||||
"test_Cylinder_A_workfileLookdev_v{0:03}.dat"
|
||||
.format(i, i),
|
||||
"_id": '{}'.format(file_id),
|
||||
|
|
@ -198,8 +198,8 @@ class TestPerformance():
|
|||
"size": random.randint(0, self.MAX_FILE_SIZE_B)
|
||||
},
|
||||
{
|
||||
"path": "{root}" + "/Test/Assets/Cylinder/publish/workfile/"
|
||||
"workfileLookdev/v{0:03}/"
|
||||
"path": "{root}" + "/Test/Assets/Cylinder/publish/workfile/" +
|
||||
"workfileLookdev/v{0:03}/" +
|
||||
"test_Cylinder_B_workfileLookdev_v{0:03}.dat"
|
||||
.format(i, i),
|
||||
"_id": '{}'.format(file_id2),
|
||||
|
|
@ -208,8 +208,8 @@ class TestPerformance():
|
|||
"size": random.randint(0, self.MAX_FILE_SIZE_B)
|
||||
},
|
||||
{
|
||||
"path": "{root}" + "/Test/Assets/Cylinder/publish/workfile/"
|
||||
"workfileLookdev/v{0:03}/"
|
||||
"path": "{root}" + "/Test/Assets/Cylinder/publish/workfile/" +
|
||||
"workfileLookdev/v{0:03}/" +
|
||||
"test_Cylinder_C_workfileLookdev_v{0:03}.dat"
|
||||
.format(i, i),
|
||||
"_id": '{}'.format(file_id3),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue