Skip to content

Add daily systemd timer for OG image generation#16

Open
retlehs wants to merge 1 commit intomainfrom
add-generate-og-timer
Open

Add daily systemd timer for OG image generation#16
retlehs wants to merge 1 commit intomainfrom
add-generate-og-timer

Conversation

@retlehs
Copy link
Member

@retlehs retlehs commented Mar 16, 2026

Summary

  • The generate-og command existed but was never scheduled — OG images were only generated on first page view and never updated
  • Adds a daily systemd timer (3am) to regenerate OG images where install counts have changed since last generation
  • Updates operations docs with the new scheduled task
  • Fixes misleading doc comment on GetPackagesNeedingOG (claimed to detect metadata changes but only checks install counts)

Deploy notes

  • Run the provision playbook to deploy the new systemd service + timer units
  • After provisioning, manually start the timer for the first time: sudo systemctl start wpcomposer-generate-og.timer

Test plan

  • Verify wpcomposer generate-og runs successfully on the server
  • Confirm timer is active: systemctl status wpcomposer-generate-og.timer
  • After 24h, verify updated OG images appear in R2 for packages with changed install counts

🤖 Generated with Claude Code

The generate-og command existed but was never scheduled. This adds a
daily systemd timer (3am) to regenerate OG images where install counts
have changed since last generation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@retlehs retlehs self-assigned this Mar 16, 2026
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