Class FailedRows

java.lang.Object
com.kingsrook.qqq.backend.core.jobs.FailedRows

public final class FailedRows extends Object
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 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

      public static void resolveAfterRetry(QRecord retryJob) throws QException
      A retry job finished: its parent's rows that did not fail again are resolved.
      Throws:
      QException
    • download

      public static Map<String,Serializable> download(QRecord job) throws QException
      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