Skip to content

[T3304] REFACTOR: serve letter previews as image instead of wkhtmltopdf PDF - #361

Merged
Danielgergely merged 2 commits into
18.0from
T3304-letter-preview-image
Aug 5, 2026
Merged

[T3304] REFACTOR: serve letter previews as image instead of wkhtmltopdf PDF#361
Danielgergely merged 2 commits into
18.0from
T3304-letter-preview-image

Conversation

@Danielgergely

Copy link
Copy Markdown
Member
  • REFACTOR: The letters page rendered a full PDF per card via /b2s_image -> wkhtmltopdf. Several concurrent renders starve the worker pool (wkhtmltopdf calls back for assets with no free worker) and freeze the instance. Serve the first page as an image via /my2/letter_preview instead: no subprocess, no callback, so previews load concurrently without wedging workers. /b2s_image stays for opening/downloading the full PDF.

…df PDF

- REFACTOR: The letters page rendered a full PDF per card via /b2s_image -> wkhtmltopdf.
Several concurrent renders starve the worker pool (wkhtmltopdf calls back for assets with no free worker) and freeze the instance.
Serve the first page as an image via /my2/letter_preview instead: no subprocess, no callback, so previews load concurrently without wedging workers. /b2s_image stays for opening/downloading the full PDF.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Greptile has paused reviews on this repository — it used its 100 free open-source review credits for this billing period. Reviews resume automatically on August 13. To continue before then, an organization admin can keep reviews running past the free credits — those bill as normal usage.

@Danielgergely
Danielgergely merged commit fd0d4a7 into 18.0 Aug 5, 2026
1 check passed
@Danielgergely
Danielgergely deleted the T3304-letter-preview-image branch August 5, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant