Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sehrishnaz/7c736d886eb70879cfcdab134230cf16 to your computer and use it in GitHub Desktop.
Save sehrishnaz/7c736d886eb70879cfcdab134230cf16 to your computer and use it in GitHub Desktop.
Use Multi Threading to Seed Up Processing in Odoo
A_calculation = threading.Thread(target=self._run_process, args=(self.id, A))
B_calculation = threading.Thread(target=self._run_process, args=(self.id, B))
C_calculation = threading.Thread(target=self._run_process, args=(self.id, C))
D_calculation = threading.Thread(target=self._run_process, args=(self.id, D))
.
.
.
.
.
J_calculation = threading.Thread(target=self._run_process, args=(self.id, J))
A_calculation.start()
B_calculation.start()
C_calculation.start()
D_calculation.start()
.
.
.
.
J_calculation.start()
@sehrishnaz
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment