YouTube Board

youtube.comments.fetch

scheduler disabled local polling disabled active command ready read-only not due now
Modern command
youtube:comments:fetch
Legacy command
/usr/bin/php /home/urtube/maint/do_comments.php
Schedule
5 * * * *
每小時第 5 分
Evaluation time
2026-05-26 13:03:14 Asia/Taipei
External dependency
Local DB; YouTube Data API commentThreads.list only with manual `--execute`
Write targets
none by default; manual local-only `--execute` updates comments/authors/revisions and moves queue rows
Notes
Legacy 逐筆讀 `urt_comment_queue`,先更新 `stime`,呼叫 `maint/get_comment.php videoId=...` 抓 YouTube `commentThreads.list` 並更新 `urt_comment` / `urt_comment_author` / `urt_comment_rev`,再更新 `ftime`、copy 到 `urt_comment_queue_done`、delete queue row。Modern command 預設仍只列出 would-drain rows 和三小時快取判斷;manual local-only `--execute --videoId/--limit --max-pages` 會檢查 `YOUTUBE_API_KEY` 後限量呼叫 YouTube,transactionally 更新本機 comment/author/revision tables 並搬移 queue row。Scheduler 不傳 `--execute`,仍是 dry-run。

Execution Guardrail

This job is not executable under the current read-only migration guardrail.

  • Job declares an external API dependency.

Scheduled Local Polling

Scheduler-enabled local polling is blocked for this job until every explicit gate is satisfied.

  • INGESTION_LOCAL_POLLING_ENABLED is false.
  • Job key is not in INGESTION_SCHEDULED_WRITE_ALLOWLIST.
  • Production polling is not explicitly enabled.

youtube:comments:fetch --execute --limit=1 --max-pages=1

Safe Commands

php artisan ingestion:run --job=youtube.comments.fetch --at="2026-05-26 13:03:14"

Next Runs

5 * * * *

  • 2026-05-26 13:05:00 CST
  • 2026-05-26 14:05:00 CST
  • 2026-05-26 15:05:00 CST
  • 2026-05-26 16:05:00 CST
  • 2026-05-26 17:05:00 CST