Skip to content

feat(T24): remove node-cron daemon and local crontab automation - #10

Merged
DamengRandom merged 1 commit into
masterfrom
feat/T24-remove-cron-daemon
Jul 30, 2026
Merged

feat(T24): remove node-cron daemon and local crontab automation#10
DamengRandom merged 1 commit into
masterfrom
feat/T24-remove-cron-daemon

Conversation

@DamengRandom

Copy link
Copy Markdown
Owner

Summary

  • Removes the in-process node-cron daemon (src/jobs/scheduler.ts, node-cron/@types/node-cron deps) and the "Automate locally (macOS crontab)" README section
  • GitHub Actions is the only automation path actually running in production — every workflow invokes a single job directly (--job=<name>), never the no-args daemon mode — so this removes dead/redundant machinery, not a used feature
  • The daemon also duplicated cron schedules already defined in .github/workflows/*.yml, a real drift risk
  • Job.schedule/Job.timezone fields stay on the registry — still used by pnpm jobs for informational display
  • No-args CLI invocation now prints usage + the job list instead of silently starting a daemon
  • Updates README (Commands, Project structure) and stale code comments referencing the deleted scheduler

Test plan

  • pnpm tsc — no errors
  • pnpm test — all 3 unit tests pass
  • pnpm format:check — clean
  • pnpm jobs — still lists all jobs with schedule info correctly
  • Manual smoke test: full pnpm news run post-removal — scrape → curate → Telegram digest sent → saved to DB, confirming the removal didn't affect the actual job execution path

🤖 Generated with Claude Code

https://claude.ai/code/session_01CtRxtJgwNeyMyTnYxuxoH6

GitHub Actions is the only automation path actually running in
production (every workflow calls a single job via --job=<name>,
never `pnpm dev` with no args). The in-process node-cron daemon
duplicated schedule definitions already living in the workflow
YAML and required a persistently-running process with no
supervisor — strictly weaker than both GitHub Actions and the
macOS crontab docs it sat alongside.

- Remove src/jobs/scheduler.ts and the node-cron/@types/node-cron deps
- No-args CLI invocation now prints usage + job list instead of
  starting a daemon
- Keep Job.schedule/timezone on the registry — still used by
  `pnpm jobs` for informational display
- Update README (Commands, Project structure) and stale comments
  referencing the deleted scheduler

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CtRxtJgwNeyMyTnYxuxoH6
@DamengRandom
DamengRandom merged commit c1d6bf7 into master Jul 30, 2026
3 checks passed
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