I am having the following architecture where there are multiple python process writing data into temp tables in batches.
For simplicity, lets consider there are two pytho