Class FailedRows
java.lang.Object
com.kingsrook.qqq.backend.core.jobs.FailedRows
The failed rows of a job (spec section 2.7):
- retry them as a child job (ROW_SET) over just those rows, with the same
inputs or a corrected bulk-load profile; the row errors get retryJobId;
- download them as CSV (the original columns plus an error column) to fix
in a spreadsheet and load again.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String, Serializable> Write a job's failed rows as CSV to the jobs storage table and grant the current session its download.static voidresolveAfterRetry(QRecord retryJob) A retry job finished: its parent's rows that did not fail again are resolved.static IntegerLaunch a child job over a job's unresolved failed rows.
-
Method Details
-
retry
public static Integer retry(QRecord job, String correctedProfileJson, Integer correctedSavedProfileId) throws QException Launch a child job over a job's unresolved failed rows. Returns the new job's id. A corrected profile (JSON or saved id) replaces the parent's.- Throws:
QException
-
resolveAfterRetry
A retry job finished: its parent's rows that did not fail again are resolved.- Throws:
QException
-
download
Write a job's failed rows as CSV to the jobs storage table and grant the current session its download. Returns {downloadFileName, storageTableName, storageReference} - the standard process download values.- Throws:
QException
-