-
Notifications
You must be signed in to change notification settings - Fork 7.4k
feat(regulatory): Railway cron — schedule seed-regulatory-actions.mjs every 2h #2495
Copy link
Copy link
Open
Labels
area: infrastructureCables, pipelines, power grids, cyber threatsCables, pipelines, power grids, cyber threatsenhancementNew feature or requestNew feature or request
Description
Context
Part of the Regulatory RSS pipeline. Final wiring step — depends on #2492, #2493, #2494 being merged and deployed.
This is task 4/4.
What to do
Add a 2-hour cron entry for seed-regulatory-actions.mjs to the Railway cron service configuration.
- Script:
node scripts/seed-regulatory-actions.mjs - Schedule: every 2 hours (
0 */2 * * *) - Rationale: Redis TTL is 7200s (2h). Cron at 2h = 1× cadence with no gap window. Regulatory actions don't change by the minute — 2h is appropriate.
Acceptance criteria
- Cron job runs every 2 hours in Railway
regulatory:actions:v1key is populated in Redis after first successful runseed-cross-source-signals.mjspicks up the key on next run (30min cadence) and emitsREGULATORY_ACTIONsignals when HIGH/MEDIUM-tier actions are present
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: infrastructureCables, pipelines, power grids, cyber threatsCables, pipelines, power grids, cyber threatsenhancementNew feature or requestNew feature or request