Skip to content

Commit

Permalink
Fix: S3Client.get_tasks (#50)
Browse files Browse the repository at this point in the history
Co-authored-by: Yuta Uchida <yuta.uchida.mar.sh.nat@gmail.com>
  • Loading branch information
yuta100101 and Yuta Uchida authored May 12, 2022
1 parent da17dbf commit cc31d7c
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 @@ -34,7 +34,7 @@ def get_tasks(self) -> List[Dict[str, Any]]:
n = n.split('_')

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

Expand Down

0 comments on commit cc31d7c

Please sign in to comment.