Repository navigation
pit-nightly: a nightly pit.world stats email - #39
Merged
Merged
Conversation
Money (summary passes by CoinPay invoice and x402, featured listings), summaries (page vs snippet, c0mpute models), accounts, newsletter, votes, directory and CrawlProof traffic, with a 7-day strip. Reads pit.world's /api/admin/stats.json (PIT_ADMIN_TOKEN from pit-world--prod); Resend and CrawlProof from fleet-nightly--prod. Counts only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Anthony asked for a nightly report ("pretty one") on pit.world stats.
bin/pit-nightlyfollows the readm3-nightly pattern:--dry-run,--day,--to/PIT_REPORT_TO, snapshots under~/.local/share/pit-nightly, and a FAILED email plusalerton error./api/admin/stats.json?day=(Admin stats endpoint for a nightly report (0.26.0) moshcoder/pit.world#128). pit.world runs as root on dev2, so it reads over HTTP withPIT_ADMIN_TOKENfrompit-world--prod.Dry-run against prod for Nov 2: 7 summaries, 6 votes, 19,157 listings, 126 visitors.
Cron after merge:
20 6 * * *on dev2, mailing anthony@ and preshy@.🤖 Generated with Claude Code