Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-3824

Wait for running jobs when XWiki stops and mark interrupted jobs in their stored status

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 18.8.0
    • Job
    • None
    • Unknown

    Description

      On shutdown DefaultJobExecutor.dispose calls shutdownNow() without waiting, and a job status is only persisted when the job finishes. A long job (space move, extension upgrade) interrupted by a container stop ends half done, with no stored status and nothing to show to the user.

      Proposal: a job.shutdownTimeout property; dispose waits up to that long, then cancels and interrupts; an interrupted job is stored as canceled with its error; the job status store flushes its asynchronous writes before the component manager disposes the stores.

      Attachments

        Issue Links

          Activity

            People

              ciaens Clément Christiaens
              ciaens Clément Christiaens
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: