handle compra creation in worker