voucher code generation in separate thread