Skip to content

Switch back to using syncronous pdf export#275

Merged
lippserd merged 2 commits into
mainfrom
sync-pdf-export
Jun 25, 2026
Merged

Switch back to using syncronous pdf export#275
lippserd merged 2 commits into
mainfrom
sync-pdf-export

Conversation

@TheSyscall

@TheSyscall TheSyscall commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

The reason we initially switched to asyncHtmlToPdf was because the headless chrome backend tried to create its own event loop, which caused problems with ipl-scheduler.

The new pdfexport module no longer has this behavior. Therefore, asyncHtmlToPdf is no longer required.
The method was never actually part of the hook and therefore relied on the fact that pdfexport was the only implementation of PdfexportHook.

@sukhwinder33445 sukhwinder33445 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please adjust the requirements. This PR requires Icinga/icingaweb2#5491, Icinga/icingaweb2#5480 and Icinga/icingaweb2-module-pdfexport#88.

While testing, I noticed that BackendLocator::getFirstSupportedBackend() (introduced with Icinga/icingaweb2-module-pdfexport#88) is called twice, once in Pdfexport::isSupported() and once in Pdfexport::htmlToPdf(). This seems redundant and results in duplicate log entries.

Image

Comment thread library/Reporting/Actions/SendMail.php Outdated
Comment thread application/controllers/ReportController.php Outdated
Comment thread application/clicommands/DownloadCommand.php
Comment thread application/controllers/ReportController.php
Comment thread application/controllers/ReportController.php
The reason we initially switched to asyncHtmlToPdf was because the
headless chrome backend tried to create its own event loop, which caused
problems with ipl-scheduler.

The new pdfexport module no longer has this behaviour.
Therefore asyncHtmlToPdf is no longer required.
The method was never actually part of the hook and therefore relied on
the fact that pdfexport was the only implementation of PdfexportHook.
Comment thread module.yml Outdated
Comment thread library/Reporting/Actions/SendMail.php
This is a temporary solution until we break support with older pdfexport
module versions.

This comment was marked as resolved.

@lippserd lippserd added this to the 1.1.0 milestone Jun 25, 2026
@lippserd lippserd merged commit f8b9d03 into main Jun 25, 2026
14 checks passed
@lippserd lippserd deleted the sync-pdf-export branch June 25, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants