YouTube Board

youtube.channels.stats

scheduler disabled local polling disabled active command ready read-only not due now
Modern command
youtube:channels:stats
Legacy command
/usr/bin/php /home/urtube/maint/get_statics.php
Schedule
*/9 * * * *
每 9 分鐘
Evaluation time
2026-05-26 13:03:44 Asia/Taipei
External dependency
Local DB
Write targets
none by default; manual local-only `--execute` updates channel/count/log rows
Notes
Legacy 從 `urt_channel` 挑 `stime` 過期或 NULL 的頻道,23 點只補 NULL,先更新 `urt_channel.stime`,再呼叫 YouTube `channels.list(statistics)` 並更新 `urt_log`、`urt_count`、`urt_channel`。Modern command 預設仍只列出 would-refresh channels;manual local-only `--execute --u_id/--channel --limit` 會檢查 `YOUTUBE_API_KEY` 後限量呼叫 YouTube,transactionally/idempotently 更新本機 `urt_channel`、`urt_count`、`urt_log`。Scheduler 不傳 `--execute`,仍是 dry-run。

Execution Guardrail

This job is read-only, active, command-ready, and allowed to execute when its cron expression is due. Scheduler execution still requires INGESTION_SCHEDULER_ENABLED=true.

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:channels:stats --execute --limit=1

Safe Commands

php artisan ingestion:run --job=youtube.channels.stats --at="2026-05-26 13:03:44" INGESTION_SCHEDULER_ENABLED=true php artisan ingestion:run --execute --job=youtube.channels.stats INGESTION_SCHEDULER_ENABLED=true INGESTION_LOCAL_POLLING_ENABLED=true INGESTION_SCHEDULED_WRITE_ALLOWLIST=youtube.channels.stats php artisan ingestion:run --execute --job=youtube.channels.stats

Next Runs

*/9 * * * *

  • 2026-05-26 13:09:00 CST
  • 2026-05-26 13:18:00 CST
  • 2026-05-26 13:27:00 CST
  • 2026-05-26 13:36:00 CST
  • 2026-05-26 13:45:00 CST