Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Pipeline: Create PDF when HTML report is created #426

Description

@rhodges

If a user chooses to download a .PDF report, there is currently a long wait for the file to be created.

We can speed this up by triggering the creation the .PDFs when the report is loaded.

  • On report load, check if the .PDF exists or is currently being created ('running')
    • The report model should track:
      • Status of .PDF creation ('pending', 'running', 'complete')
      • Date of last attempt to create .PDF (to detect 'hung' processes)
  • If file does not exist and status is not 'running' (or 'run date' is over 30 minutes old):
    • Ensure any required data (like map images) are created and ready
    • Create 'full report' .pdf
  • Remove any logic that triggers .PDF creation when users click the full-report 'download' button
  • Single-section reports (see Allow users to download individual sections of the report #425 ) should be snappy without pre-rendering since the images were all created for the 'full-report'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions