Run the itemdb style import daily #39

Merged
matchu merged 3 commits from armin-bot/impress:claude/itemdb-style-cron into main 2026-11-17 12:43:31 -08:00
Contributor

Adds a daily cron job (3:40am) for rails itemdb:import:styles. Our own scraper should cover most style token data, but itemdb knows about some things we can't see, and this gives us repair coverage for what we missed.

Before this takes effect

  • Merging deploys the rake task but does not install the cron job. Cron entries live in deploy/setup.yml, so someone needs to run bin/deploy:setup.
  • ITEMDB_API_KEY must be in production.env first. bin/deploy:setup re-uploads deploy/files/production.env, so add the key to the local copy before running it. Without the key the job fails daily with Itemdb::NotConfigured (loudly, not silently).

Notes

  • The task is idempotent and non-interactive. Failures exit non-zero, same as the other cron jobs; there's no log redirect or alerting.
  • Also documents ITEMDB_API_KEY in docs/deployment-setup.md.
  • Not run end to end; only checked that setup.yml parses as YAML. A fresh-eyes subagent review found no problems.

🤖 Generated with Claude Code

https://claude.ai/code/session_014PWWd1QMX2t64swpQbiV2s

Adds a daily cron job (3:40am) for `rails itemdb:import:styles`. Our own scraper should cover most style token data, but itemdb knows about some things we can't see, and this gives us repair coverage for what we missed. ## Before this takes effect - **Merging deploys the rake task but does not install the cron job.** Cron entries live in `deploy/setup.yml`, so someone needs to run `bin/deploy:setup`. - **`ITEMDB_API_KEY` must be in `production.env` first.** `bin/deploy:setup` re-uploads `deploy/files/production.env`, so add the key to the local copy before running it. Without the key the job fails daily with `Itemdb::NotConfigured` (loudly, not silently). ## Notes - The task is idempotent and non-interactive. Failures exit non-zero, same as the other cron jobs; there's no log redirect or alerting. - Also documents `ITEMDB_API_KEY` in `docs/deployment-setup.md`. - Not run end to end; only checked that `setup.yml` parses as YAML. A fresh-eyes subagent review found no problems. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014PWWd1QMX2t64swpQbiV2s
Our own importers should catch most style token data, but itemdb knows about some things we can't see, and can repair what we missed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014PWWd1QMX2t64swpQbiV2s
Document ITEMDB_API_KEY in production.env
Some checks failed
CI / rspec (pull_request) Has been cancelled
CI / deploy (pull_request) Has been cancelled
c055900911
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014PWWd1QMX2t64swpQbiV2s
matchu scheduled this pull request to auto merge when all checks succeed 2026-11-17 12:25:33 -08:00
Merge branch 'main' into claude/itemdb-style-cron
All checks were successful
CI / rspec (pull_request) Successful in 1m59s
CI / deploy (pull_request) Has been skipped
6c8ccd99ee
matchu merged commit d897ac62c7 into main 2026-11-17 12:43:31 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
OpenNeo/impress!39
No description provided.