mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-14 21:36:35 +03:00
Moved sync start mark to the beggining of the task
This commit is contained in:
parent
75fcdeeec0
commit
da21e9939a
|
@ -259,8 +259,6 @@ class ClickHouseModel(with_metaclass(ClickHouseModelMeta, InfiModel)):
|
|||
|
||||
with statsd.timer(statsd_key.format('steps.post_sync')):
|
||||
storage.post_sync(import_key)
|
||||
|
||||
storage.set_last_sync_time(import_key, datetime.datetime.now())
|
||||
except RedisLockTimeoutError:
|
||||
pass # skip this sync round if lock is acquired by another thread
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user