mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-15 05:46:41 +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')):
|
with statsd.timer(statsd_key.format('steps.post_sync')):
|
||||||
storage.post_sync(import_key)
|
storage.post_sync(import_key)
|
||||||
|
|
||||||
storage.set_last_sync_time(import_key, datetime.datetime.now())
|
|
||||||
except RedisLockTimeoutError:
|
except RedisLockTimeoutError:
|
||||||
pass # skip this sync round if lock is acquired by another thread
|
pass # skip this sync round if lock is acquired by another thread
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user