refactor(backups): remove extraneous asserts from jobs

pull/35/head
Houkime 2023-05-17 20:24:29 +00:00 committed by Inex Code
parent c8512eacdc
commit c5c41b3ced
1 changed files with 0 additions and 4 deletions

View File

@ -134,8 +134,6 @@ class Jobs:
def log_status_update(job: Job, status: JobStatus):
redis = RedisPool().get_connection()
key = _status_log_key_from_uuid(job.uid)
if redis.exists(key):
assert redis.type(key) == "list"
redis.lpush(key, status.value)
redis.expire(key, 10)
@ -143,8 +141,6 @@ class Jobs:
def log_progress_update(job: Job, progress: int):
redis = RedisPool().get_connection()
key = _progress_log_key_from_uuid(job.uid)
if redis.exists(key):
assert redis.type(key) == "list"
redis.lpush(key, progress)
redis.expire(key, 10)