19972889 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 2 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.170
Queue Time 02:58.377
Run Time 00:01.334
Inserted 3h ago
Scheduled 2h ago
Completed 2h ago (00:02)
Cancelled
Discarded

Args

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

Meta

%{
  "deps" => ["generate_event_counts"],
  "name" => "generate_users_reached",
  "on_hold" => false,
  "orig_scheduled_at" => 1772846059910323,
  "recorded" => true,
  "return" => "g1AAAABReJwrYWBgYC7nLS1OLSqOL0pNTM5ITUlkKJdOKs3MSUktik8tS80riUeXlsgrKI4vLi0qS61ElwMAjygd2w",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc5a5-c793-71c7-9f17-12f905dd67ae"
}

Recorded Output

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

Errors

Attempt 1—2h ago

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

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

    # 1
    "_LIMIT_EXCEEDED) (version 25.10.1.7525 (official build))\n"

    # 2
    59

    # 3
    67

    # 4
    ["_rows_to_read = 5389, offset = 0): While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (MEMORY", "of type s3, from mark 66 with ma", "events.event_history_v2 (5f30ce73-d792-4409-8626-e5e307da7fa9) located on disk s3WithKeeperDisk", "e reading from part data/5f30ce73-d792-4409-8626-e5e307da7fa9/all_4367134_4408939_26_22488012/ in table prod", "reading column attributes): (whi", " Waiting timeout for memory to be freed is reached: (while", "iB), current RSS: 334.27 GiB, maximum: 320.40 GiB. OvercommitTracker decision", "de: 241. DB::Exception: (total) memory limit exceeded: would use 339.51 GiB (attempt to allocate chunk of 4.49 "]

    (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