completed SMS gateway project
This commit is contained in:
20
config/sidekiq_cron.yml
Normal file
20
config/sidekiq_cron.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
reset_daily_counters:
|
||||
cron: "0 0 * * *" # Daily at midnight
|
||||
class: "ResetDailyCountersJob"
|
||||
queue: default
|
||||
description: "Reset daily message counters for all gateways"
|
||||
active_job: true
|
||||
|
||||
cleanup_expired_otps:
|
||||
cron: "*/15 * * * *" # Every 15 minutes
|
||||
class: "CleanupExpiredOtpsJob"
|
||||
queue: low_priority
|
||||
description: "Delete expired OTP codes from database"
|
||||
active_job: true
|
||||
|
||||
check_gateway_health:
|
||||
cron: "* * * * *" # Every minute
|
||||
class: "CheckGatewayHealthJob"
|
||||
queue: default
|
||||
description: "Check gateway health and mark offline gateways"
|
||||
active_job: true
|
||||
Reference in New Issue
Block a user