I have a requirement to process incoming csv files in gcs.
I am not able to trigger execution by shell commands in cloud-functions like:
subprocess.run([
"python", "-W", "ignore", "dataflow_ingestion_engine.py",
"gs://logs-check/csv_input/input2.csv", "--runner", "DataflowRunner"]
)
or
command = """
python tmp/dataflow_ingestion_engine.py gs://logs-check/csv_input/input2.csv --runner DataflowRunner
"""
os.system(command)
Cloud-function is not execution the shell execution part(Not seeing anything in the log). How to achieve the requirement of triggering dataflow(Python-SDK) using cloud-function?