I am using the subprocess module in python to run the following command:
gsutil -m -o GSUtil:parallel_composite_upload_threshold=150M cp -r *.csv gs://2-treemap-extraction-ps-trigger
This works fine when running this Python script on my local machine. However, when running this same script in Cloud Run, I get the following error:
CommandException: Incorrect option(s) specified. Usage:
gsutil cp [OPTION]... src_url dst_url
gsutil cp [OPTION]... src_url... dst_url
gsutil cp [OPTION]... -I dst_url
I have no idea what could be the problem. I have changed nothing in my code when running it locally versus in Cloud Run.