Skip to content

Commit 0ea3f23

Browse files
committed
add some debuggy messages
1 parent 46ff270 commit 0ea3f23

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

main.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,16 @@ def load_processed_files_into_bigquery(event, context):
192192
with storage_client.batch():
193193
for blob in download_source_blobs:
194194
blob.delete()
195+
print(
196+
f"Deleted {len(download_source_blobs)} blobs from gs://{RESULT_BUCKET}/{download_prefix}"
197+
)
195198
if len(simple_source_blobs) > 0:
196199
with storage_client.batch():
197200
for blob in simple_source_blobs:
198201
blob.delete()
202+
print(
203+
f"Deleted {len(simple_source_blobs)} blobs from gs://{RESULT_BUCKET}/{simple_prefix}"
204+
)
199205

200206
if continue_publishing and (
201207
len(download_source_blobs) > 0 or len(simple_source_blobs) > 0
@@ -204,7 +210,7 @@ def load_processed_files_into_bigquery(event, context):
204210
topic_path = publisher.topic_path(DEFAULT_PROJECT, PUBSUB_TOPIC)
205211
publisher.publish(
206212
topic_path,
207-
b'',
213+
b"",
208214
partition=partition,
209215
continue_publishing=str(continue_publishing),
210216
)

0 commit comments

Comments
 (0)