Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions convex/crons.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,11 @@ describe("crons", () => {
expect(mocks.cron).not.toHaveBeenCalled();
});

it("checks the Pacific weekly release at the top of each hour and retains bounded delivery history", async () => {
it("does not schedule weekly search digests but retains bounded delivery history", async () => {
await import("./crons");
expect(mocks.cron).toHaveBeenCalledWith(
"search-weekly-digest",
"0 * * * *",
mocks.searchWeeklyTick,
{},
);
for (const register of [mocks.cron, mocks.interval]) {
expect(register.mock.calls.map(([, , ref]) => ref)).not.toContain(mocks.searchWeeklyTick);
}
expect(mocks.interval).toHaveBeenCalledWith(
"search-report-retention-prune",
{ hours: 1 },
Expand Down
2 changes: 0 additions & 2 deletions convex/crons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { RETENTION_STANDARD_BATCH_SIZE } from "./lib/retentionPolicy";
const crons = cronJobs();

if (process.env.CLAWHUB_DISABLE_CRONS !== "1" && process.env.CLAWHUB_PREVIEW !== "1") {
// Hour-aligned UTC ticks let the release gate honor Pacific DST at 09:00.
crons.cron("search-weekly-digest", "0 * * * *", internal.searchWeeklyDigest.tickInternal, {});
crons.interval(
"search-report-retention-prune",
{ hours: 1 },
Expand Down
8 changes: 3 additions & 5 deletions specs/search-weekly-digest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ message. Neither side changes official provenance, Featured curation, or Trendin

## Schedule and scope

`searchWeeklyDigest.tickInternal` runs at the top of each UTC hour. Its Pacific
calendar gate releases the completed UTC week on Monday at 09:00 America/Los_Angeles,
including DST. Repeated Monday ticks are harmless; an atomic week claim prevents
overlapping deliveries. Later ticks recover existing due failures, not historical
weeks that were never collected. Preview/disabled-cron deployments register no job.
ClawHub no longer schedules the weekly plugin and skill search digest. No new
weeks are generated or sent to Hermit automatically. The daily retention job
still expires old digest records; search analytics and on-demand reports are unchanged.

The producer starts one bounded aggregation batch and retries if continuation is
needed. It reads the shared recommendation owner and canonical aggregate API
Expand Down
Loading