refactor(bot): replace reminder polling with scheduled dispatches

This commit is contained in:
2026-03-24 20:51:54 +04:00
parent a1acec5e60
commit 7f836eeee2
48 changed files with 6425 additions and 1557 deletions

View File

@@ -165,40 +165,17 @@ variable "openai_api_key_secret_id" {
nullable = true
}
variable "scheduler_timezone" {
description = "Scheduler timezone"
variable "scheduled_dispatch_queue_name" {
description = "Cloud Tasks queue name for one-shot reminder dispatches"
type = string
default = "Asia/Tbilisi"
default = "scheduled-dispatches"
}
variable "scheduler_utilities_cron" {
description = "Cron expression for the utilities reminder scheduler job. Daily cadence is recommended because the app filters per household."
variable "scheduled_dispatch_public_base_url" {
description = "Public bot base URL used by Cloud Tasks callbacks for scheduled dispatches"
type = string
default = "0 9 * * *"
}
variable "scheduler_rent_warning_cron" {
description = "Cron expression for the rent warning scheduler job. Daily cadence is recommended because the app filters per household."
type = string
default = "0 9 * * *"
}
variable "scheduler_rent_due_cron" {
description = "Cron expression for the rent due scheduler job. Daily cadence is recommended because the app filters per household."
type = string
default = "0 9 * * *"
}
variable "scheduler_dry_run" {
description = "Whether scheduler jobs should invoke the bot in dry-run mode"
type = bool
default = true
}
variable "scheduler_paused" {
description = "Whether scheduler should be paused initially"
type = bool
default = true
default = null
nullable = true
}
variable "bot_min_instances" {