#
Blogger Workers
#
bloggers-worker
Type: HTTP + Scheduled
Route: api-private.influtics.com/blogger/*
Cron: 0 0,12 * * *
#
HTTP Endpoints
#
Scheduled Handler
scheduled() fires on 0 0,12 * * * and calls scheduleMidnightBloggerFetches() from midnightBloggerFetch.ts.
#
blogger-video-consumer
Type: Queue Consumer
Queue: BLOGGER_VIDEO_QUEUE
#
handleInitialFetch()
- Check
pending_initial_fetchflag (prevents duplicate processing) - Check subscription limits
- Fetch videos via
apiService.getUserVideosBatch() - Save via
saveBloggerVideos()→videos+video_statistics - Queue thumbnail downloads
- YouTube only: enqueue stats batches to
HIGH_PRIORITY_QUEUE - Set
initial_videos_fetched = true, clearpending_initial_fetch
#
handleMidnightBatch()
- Check subscription limits
- Fetch via
getUserVideosBatch() - Save videos + stats
- Queue thumbnail downloads
- YouTube only: enqueue stats batches to
HIGH_PRIORITY_QUEUE - Update
tracked_accounts.last_scraped_at