Skip to content

Commit 91be1d8

Browse files
committed
feat: implemented caching mechanism
1 parent 00547e0 commit 91be1d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webapp/databricks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,11 @@ def _consume_chunk(chunk_obj: Any) -> int | None:
459459
storage_client = storage.Client()
460460
bucket = storage_client.bucket(bucket_name)
461461
blob = bucket.blob(object_name)
462+
blob.content_encoding = "gzip"
462463
try:
463464
blob.upload_from_string(
464465
gz,
465466
content_type="application/json",
466-
content_encoding="gzip",
467467
if_generation_match=0, # write-once; 412 if someone beat us
468468
)
469469
except gcs_errors.PreconditionFailed:

0 commit comments

Comments
 (0)