YouTube Board

youtube.tag_videos.backfill

scheduler enabled local polling enabled active command ready external polling/write not due now
Modern command
youtube:tag-videos:backfill
Legacy command
/usr/bin/php /home/urtube/maint/get_video.php tagid=102 plus make_tag_date.php
Schedule
17 0,3,6,9,12,15,18,21 * * *
每日 8 次;分頁抓 tag 頻道 uploads playlist 後重建逐日快取
Evaluation time
2026-06-10 18:40:45 Asia/Taipei
External dependency
YouTube Data API + Local DB
Write targets
preview mode; scheduled/local --execute upserts urt_video, urt_video_schedule, urt_video_live, and urt_show_tag_date
Notes
針對每日新聞頻道等高產量 tag,不能只靠一般 discovery 每頻道少量 playlist item。此 job 依 urt_count.tags 找指定 tag 全部頻道,分頁抓 uploads playlist 直到超出日期範圍,寫入影片資料後用 TagDateCacheBuilder 重建 urt_show_tag_date,讓 /tags/{tagId}/days 使用本機每日快取。

Execution Guardrail

此 job 目前不會執行;下面保留 guardrail 原始原因,方便對照 CLI/output。

  • Job declares write targets, so it is not allowed under the current controlled execution guardrail.
  • Job declares an external API dependency.

Scheduled Local Polling

此 job 已 allowlisted,可以由 scheduler-enabled polling 執行。當 ingestion:run --execute 評估為 due 時,scheduler 會使用下方 capped command。

youtube:tag-videos:backfill --tagid=102 --days=2 --execute --limit=100 --max-pages=20 --max-results=50

Safe Commands

php artisan ingestion:run --job=youtube.tag_videos.backfill --at="2026-06-10 18:40:45" INGESTION_SCHEDULER_ENABLED=true php artisan ingestion:run --execute --job=youtube.tag_videos.backfill INGESTION_SCHEDULER_ENABLED=true INGESTION_LOCAL_POLLING_ENABLED=true php artisan ingestion:run --execute --job=youtube.tag_videos.backfill

Next Runs

17 0,3,6,9,12,15,18,21 * * *

  • 2026-06-10 21:17:00 CST
  • 2026-06-11 00:17:00 CST
  • 2026-06-11 03:17:00 CST
  • 2026-06-11 06:17:00 CST
  • 2026-06-11 09:17:00 CST