20035807 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 2 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.159
Queue Time 04:51.555
Run Time 00:01.786
Inserted 8h ago
Scheduled 7h ago
Completed 7h ago (00:02)
Cancelled
Discarded

Args

%{
  "account_id" => "53276",
  "date" => "2026-03-08",
  "query" => "users_reached",
  "window_days" => 30
}

Meta

%{
  "deps" => ["generate_event_counts"],
  "name" => "generate_users_reached",
  "on_hold" => false,
  "orig_scheduled_at" => 1772932338503632,
  "recorded" => true,
  "return" => "g1AAAABUeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYPB9XC6dVJqZk5JaFJ9alppXEo+iIpGhXCKvoDi+uLSoLLUSXQ4A6yMfDA",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019ccacc-2ba4-7806-afcf-75fcd8e5ad8f"
}

Recorded Output

%{
  users_reached: 19939,
  builder_event_users_reached: 0,
  nps_survey_users_reached: 0
}

Errors

Attempt 1—7h ago

** (FunctionClauseError) no function clause matching in Ch.RowBinary.decode_names/4

The following arguments were given to Ch.RowBinary.decode_names/4:

    # 1
    "build))\n"

    # 2
    54

    # 3
    67

    # 4
    ["(version 25.10.1.7525 (official ", " algorithm: Thread). (MEMORY_LIMIT_EXCEEDED)", " 0): While executing MergeTreeSelect(pool: PrefetchedReadPool", "max_rows_to_read = 7968, offset ", "of type s3, from mark 39263 with", " prod_events.event_history_v2 (5f30ce73-d792-4409-8626-e5e307da7fa9) located on disk s3WithKeeperDisk", "07da7fa9/all_16040183_16047849_12_22488012/ in tabl", "data/5f30ce73-d792-4409-8626-e5e", "chars_size = 1219.2, limit = 7968): (while reading column attributes): (while reading from part", "(avg_value_size_hint = 1024, avg", "ximum: 320.40 GiB. OvercommitTracker decision: Waiting timeout for memory to be freed is reached:", "MiB), current RSS: 314.05 GiB, m", "de: 241. DB::Exception: (total) memory limit exceeded: would use 324.07 GiB (attempt to allocate chunk of 18.79"]

    (ch 0.7.1) lib/ch/row_binary.ex:789: Ch.RowBinary.decode_names/4
    (ch 0.7.1) lib/ch/query.ex:290: DBConnection.Query.Ch.Query.decode/3
    (db_connection 2.9.0) lib/db_connection.ex:1470: DBConnection.decode/4
    (db_connection 2.9.0) lib/db_connection.ex:849: DBConnection.execute/4
    (ch 0.7.1) lib/ch.ex:94: Ch.query/4
    (ecto_sql 3.13.4) lib/ecto/adapters/sql.ex:620: Ecto.Adapters.SQL.query!/4
    (ecto_ch 0.8.6) lib/ecto/adapters/clickhouse.ex:323: Ecto.Adapters.ClickHouse.execute/5
    (ecto 3.13.5) lib/ecto/repo/queryable.ex:241: Ecto.Repo.Queryable.execute/4