any help please how can i do this process and run batch en parallel with multiprocessing.pool
# This loop needs to be parallelized
for batch_index, batched_payloads in enumerate(frappe.utils.create_batch(payloads, batch_size)):
for i, payload in enumerate(batched_payloads):
# Do something
continue
try:
doc = self.process_doc(doc)
# Do something
frappe.db.commit()
except Exception:
frappe.db.rollback()