python - Cannot upload large file to Google Cloud Storage -
it okay when dealing small files. doesn't work when try upload large files. i'm using python client. snippet is:
filename='my_csv.csv' storage_client = storage.client() bucket_name = os.environ["google_storage_bucket"] bucket = storage_client.get_bucket(bucket_name) blob = bucket.blob("{}".format(filename)) blob.upload_from_filename(filename) # file size 500 mb
the thing traceback "killed" , i'm out of python interpreter.
any suggestions highly appriciated
edit: works okay local machine. application runs in google container engine, problems occurs there when runs in celery task.
Comments
Post a Comment