move PI PDF generation to background job