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
- 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:
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:
I didn't make a test now, but I am pretty sure the jobs ran with the job macro were displaying their status when not ran (with parameter start=false). 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.
|