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

Send an error event when Worker has failed after all retries

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 9.10-HF01, 10.1
    • Component/s: Events / Works

      Description

      Some customers needs to handle exception when a given worker failed.
      Work exception can very different based on the work type:

      • like issues with filesystem
      • timeout
        etc.
        They want for instance listen to an event to triage the document and update its status, or move the document and also send an email.
        The current AbstractWork#run simply raise an exception when all retries have failed.

      We need a new default event workFailed fired once all retries have failed and attach the stack trace by default. We should also let the custom Work implementation override:

      • what is being send in the event so the event can be enrich with more details of the root cause than a simple error massage

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours
                  5h