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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -