Im using a python spark workflow that executes multiples tasks. Gets some data from db, process, loads back to db.
All these are separate tasks but each of these the dababase connection object.
How do I pass the db connection between multiple executors? Do I need to make a separate connection in each of its own tasks or can I distribute the connection?