service_name: cron-service
node_id: cron-local
environment: local
log:
  level: info
  format: json
  include_request_body: false
  include_response_body: false
  max_payload_bytes: 2048
grpc_addr: ":13007"
health_http_addr: ":13107"
mysql_dsn: "hyapp:hyapp@tcp(127.0.0.1:23306)/hyapp_cron?parseTime=true&charset=utf8mb4&loc=UTC"
user_service_addr: "127.0.0.1:13005"
activity_service_addr: "127.0.0.1:13006"
game_service_addr: "127.0.0.1:13008"
wallet_service_addr: "127.0.0.1:13004"
tasks:
  login_ip_risk:
    enabled: true
    interval: "5s"
    timeout: "3s"
    lock_ttl: "30s"
    batch_size: 100
    app_codes: ["lalu"]
  user_region_rebuild:
    enabled: true
    interval: "5s"
    timeout: "5s"
    lock_ttl: "30s"
    batch_size: 500
    app_codes: ["lalu"]
  message_fanout:
    enabled: true
    interval: "1s"
    timeout: "10s"
    lock_ttl: "30s"
    batch_size: 500
    app_codes: ["lalu"]
  growth_level_reward:
    enabled: true
    interval: "5s"
    timeout: "10s"
    lock_ttl: "30s"
    batch_size: 100
    app_codes: ["lalu"]
  weekly_star_settlement:
    enabled: true
    interval: "5s"
    timeout: "20s"
    lock_ttl: "1m"
    batch_size: 50
    app_codes: ["lalu"]
  room_turnover_reward_settlement:
    enabled: true
    interval: "5m"
    timeout: "30s"
    lock_ttl: "5m"
    batch_size: 100
    app_codes: ["lalu"]
  cp_intimacy_leaderboard:
    enabled: true
    interval: "5m"
    timeout: "20s"
    lock_ttl: "5m"
    batch_size: 10000
    app_codes: ["lalu"]
  game_level_event_relay:
    enabled: true
    interval: "5s"
    timeout: "10s"
    lock_ttl: "30s"
    batch_size: 100
    app_codes: ["lalu"]
  mic_open_session_compensation:
    enabled: true
    interval: "60s"
    timeout: "10s"
    lock_ttl: "60s"
    batch_size: 100
    pending_publish_max_age: "2m"
    publishing_session_max_age: "12h"
    app_codes: ["lalu"]
