mirror of
https://github.com/we-promise/sure.git
synced 2026-04-12 16:47:22 +00:00
* Add scheduled job to sync all accounts every 30 minutes Signed-off-by: Nikhil Badyal <nikhill773384@gmail.com> * Change job queue from default to scheduled Signed-off-by: Juan José Mata <juanjo.mata@gmail.com> * Flatten job into single directory * Every 30 minutes is a bit much and will trigger Sentry warnings * Locking and logging improvements * Add support for extra Sidekiq goodies --------- Signed-off-by: Nikhil Badyal <nikhill773384@gmail.com> Signed-off-by: Juan José Mata <juanjo.mata@gmail.com> Co-authored-by: Nikhil Badyal <nikhill773384@gmail.com>
27 lines
835 B
YAML
27 lines
835 B
YAML
import_market_data:
|
|
cron: "0 22 * * 1-5" # 5:00 PM EST / 6:00 PM EDT (NY time) Monday through Friday
|
|
class: "ImportMarketDataJob"
|
|
queue: "scheduled"
|
|
description: "Imports market data daily at 5:00 PM EST (1 hour after market close)"
|
|
args:
|
|
mode: "full"
|
|
clear_cache: false
|
|
|
|
clean_syncs:
|
|
cron: "0 * * * *" # every hour
|
|
class: "SyncCleanerJob"
|
|
queue: "scheduled"
|
|
description: "Cleans up stale syncs"
|
|
|
|
run_security_health_checks:
|
|
cron: "0 2 * * 1-5" # 2:00 AM EST / 3:00 AM EDT (NY time) Monday through Friday
|
|
class: "SecurityHealthCheckJob"
|
|
queue: "scheduled"
|
|
description: "Runs security health checks to detect issues with security data"
|
|
|
|
sync_all_accounts:
|
|
cron: "22 2 * * *" # every 24 hours at 2:22am
|
|
class: "SyncAllJob"
|
|
queue: "scheduled"
|
|
description: "Syncs all accounts for all families"
|