Skip to content

Commit

Permalink
Merge pull request #48 from kohei-shinden/fix_s3_client_get_tasks_loc…
Browse files Browse the repository at this point in the history
…al_cache

fix input for local_cache.get in S3Client.get_tasks
  • Loading branch information
hirosassa authored Feb 1, 2022
2 parents 322af39 + 9bb4c7e commit 107e4e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thunderbolt/client/s3_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_tasks(self) -> List[Dict[str, Any]]:
n = n.split('_')

if self.use_cache:
cache = self.local_cache.get(x)
cache = self.local_cache.get(x['key'])
if cache:
tasks_list.append(cache)
continue
Expand All @@ -48,7 +48,7 @@ def get_tasks(self) -> List[Dict[str, Any]]:
}
tasks_list.append(params)
if self.use_cache:
self.local_cache.dump(x, params)
self.local_cache.dump(x['key'], params)
except Exception:
continue

Expand Down

0 comments on commit 107e4e2

Please # to comment.