Make standard method of core doctypes run as background job

Hello community
I want to make a class method in core doctype to run maybe(frappe.enque) as background job, to avoid server timed out, anyone have any suggestion for best practice to do that

If you haven’t check then please check this.

thank you i just checked it , i am thinking about what is the best practice for doing that if its standard class doctype , is it to extend the overall class and then make each function enqueue or duplicate the doctype and then make the modification