mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-15 05:46:41 +03:00
Fix in counter
This commit is contained in:
parent
9bc6c6154b
commit
d8dccf209d
|
@ -233,11 +233,10 @@ class RedisStorage(Storage):
|
|||
else:
|
||||
batch_size = 0
|
||||
|
||||
self.post_batch_removed(import_key, batch_size)
|
||||
|
||||
# unblock lock after sync completed
|
||||
lock_pid_key = self.REDIS_KEY_LOCK_PID.format(import_key=import_key)
|
||||
self._redis.delete(lock_pid_key)
|
||||
self.post_batch_removed(import_key, batch_size)
|
||||
self.get_lock(import_key, **kwargs).release()
|
||||
|
||||
logger.info('django-clickhouse: synced %d items (key: %s)' % (batch_size, import_key))
|
||||
|
|
Loading…
Reference in New Issue
Block a user