I have 3 procedures to execute in a Oracle DB accessed via a python script. However, instead of running them sequentially, I would like to run them in parallel. How can I achieve this?
def main():
try:
myconnection_to_a_db.cursor().execute('BEGIN MYPACKAGE1.startProcess; END;')
except Exception as e:
logging.exception(e)
try:
myconnection_to_a_db.cursor().execute('BEGIN MYPACKAGE2.startProcess; END;')
except Exception as e:
logging.exception(e)
try:
myconnection_to_a_db.cursor().execute('BEGIN MYPACKAGE3.startProcess; END;')
except Exception as e:
logging.exception(e)