Uploaded image for project: 'Job Macro'
  1. Job Macro
  2. JOBMACRO-20

Jobs executed with the job macro don't display / store logs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Major
    • 2.2.0
    • 2.1
    • Unknown

    Description

      I reproduce this on XWiki version 15.10.10 and XWiki version 16.4.6.

      How to reproduce:

      • make a job with the job macro, with
        {{job id='jobid' start='true'}}
        [...]
        {{/job}}
        
      • execute the job by executing the macro (displaying the page in view mode)
      • restart XWiki to clean the job status from the memory
      • display the status of the ran job with:
        {{job id='jobid' start='false' /}}
        

      Expected result:

      • the logs of the job ran just before should be displayed

      Actual result:

      • no job logs are displayed, the job macro does not display any result

      Moreover, trying to display the job status / job with the rest jobstatus API doesn't display anything, at URL:

      [domain]/xwiki/rest/jobstatus/jobid
      

      If the status of a job not created with the job macro is displayed with the job macro, the logs are properly displayed (e.g. the logs of a refactoring job).

      On disk, in the permanent directory in the jobs folder, there is a difference between the way jobs created with jobmacro are stored and the way jobs created from java are stored:

      • in the job folder, jobs created with job macro only have the status.xml.zip file
      • while other jobs also have log.index and log.xml files.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: