-
Sub-task
-
Resolution: Done
-
Major
-
None
-
None
This tasks is for the worker doing the actual report generation. It assumes some other worker (the UI) has queued a task to generate the JDR report with a database record in "Queued" state.
- Code exists to generate a JDR report but is incorrectly invoking a generic Hawkular operation. A change is needed to invoke the right Hawkular operation that streams back the report.
- If available, the operation should delete the remote file in the WildFly node once the report is streamed back.
- When the request to generate the report is sent, the relevant database record should be updated to transition it from "Queued" to "Running".
- Once the report generation has finished and has been received by MiQ server, the report must be saved in MiQ storage and the relevant record should be updated to transition it from "Running" to "Complete" and make it available for download in the UI.
- If report generation ends with failure, the relevant database record should be updated from "Running" to "Error" and the error message should be saved to make available at UI for reference.