Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30450

Support filtering when reprocessing DLQ Work

    XMLWordPrintable

    Details

    • Release Notes Summary:
      DLQ works can be reprocessed thanks to new filters.
    • Upgrade notes:
      Hide

      The RunWorkInFailure operation has been extended to support 2 more options:

      • dryRun: when true displays statistics on Works to reprocess, note that nothing is processed or modified when this option is activated.
      • categoryFilter: a list of Work categories (comma separated) to filter Works that will be reprocessed

      Example of invocation:

      curl -X POST "http://localhost:8080/nuxeo/site/automation/WorkManager.RunWorkInFailure" -u Administrator:Administrator -H 'content-type: application/json' -d '{"params":{"dryRun": true, "categoryFilter": "elasticSearchIndexing"},"context":{}}'
      
      Show
      The RunWorkInFailure operation has been extended to support 2 more options: dryRun : when true displays statistics on Works to reprocess, note that nothing is processed or modified when this option is activated. categoryFilter : a list of Work categories (comma separated) to filter Works that will be reprocessed Example of invocation: curl -X POST "http: //localhost:8080/nuxeo/site/automation/WorkManager.RunWorkInFailure" -u Administrator:Administrator -H 'content-type: application/json' -d '{ "params" :{ "dryRun" : true , "categoryFilter" : "elasticSearchIndexing" }, "context" :{}}'
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #36
    • Story Points:
      3

      Description

      Since NXP-27148 Works in failure are put into a DLQ.

      They can be reprocessed using RunWorkInFailure operation.
      But most of the time we want to reprocess only specifics Works, like indexing or video conversion not all Works.

      We should add a parameter that takes a list of Work classes to filter the reprocessing.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: