Skip to content

Commit 0b413fa

Browse files
authored
Add files via upload
1 parent b4fed6c commit 0b413fa

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cloud.py

-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ def s3_upload_file(s3_client,bucket,file_name,object_name):
2929

3030
def s3_upload(bucket,dir,topic_name,retry_upload_seconds,thread_count):
3131
s3_client = boto3.client('s3')
32-
count = 0
3332
while True:
3433
_topic_dir = os.path.join(dir, topic_name)
3534
_count_partition_dirs = len(Common.listDirs(_topic_dir))
@@ -44,7 +43,6 @@ def s3_upload(bucket,dir,topic_name,retry_upload_seconds,thread_count):
4443
args=[s3_client,bucket,file_name,object_name],
4544
name="S3 Upload Threads"
4645
).start()
47-
count += 1
4846
else:
4947
logging.info(f"s3 upload retry for new files in {retry_upload_seconds} seconds")
5048
time.sleep(retry_upload_seconds)

0 commit comments

Comments
 (0)