20097662 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 4 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 00:00.517
Run Time 01:25.831
Inserted 5h ago
Scheduled 4h ago
Completed 3h ago (01:26)
Cancelled
Discarded

Args

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

Meta

%{
  "deps" => ["generate_event_counts"],
  "name" => "generate_users_reached",
  "on_hold" => false,
  "orig_scheduled_at" => 1773018044930956,
  "recorded" => true,
  "return" => "g1AAAABXeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYDBoLJdOKs3MSUktik8tS80riUdXwR9dLpFXUBxfXFpUllqJKp3IAAAUDB74",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019ccff2-7d18-7957-a5dc-c86842a3dc24"
}

Recorded Output

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

Errors

Attempt 3—4h ago

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

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

    # 1
    "7525 (official build))\n"

    # 2
    59

    # 3
    67

    # 4
    ["refetchedReadPool, algorithm: Thread). (MEMORY_LIMIT_EXCEEDED) (version 25.10.1.", "Disk of type s3, from mark 13560 with max_rows_to_read = 6009, offset = 0): While executing MergeTreeSelect(pool: ", "le prod_events.event_history_v2 (5f30ce73-d792-4409-8626-e5e307da7fa9) located on disk s3WithKeepe", " reading from part data/5f30ce73-d792-4409-8626-e5e307da7fa9/all_15066121_15069200_12_22488012/ in ta", "reading column timestamp): (whil", " Waiting timeout for memory to be freed is reached: (while", "iB), current RSS: 304.78 GiB, maximum: 320.40 GiB. OvercommitTracker decision", "de: 241. DB::Exception: (total) memory limit exceeded: would use 338.74 GiB (attempt to allocate chunk of 4.68 "]

    (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

Attempt 2—4h ago

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

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

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

    # 2
    63

    # 3
    67

    # 4
    ["emory: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (MEMORY_LIMIT_EXCEEDED) ", "iB. OvercommitTracker decision: Memory overcommit has not freed enough ", " MiB), current RSS: 307.51 GiB, maximum: 320.40 ", "de: 241. DB::Exception: (total) memory limit exceeded: would use 323.05 GiB (attempt to allocate chunk of 256.0"]

    (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

Attempt 1—4h ago

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

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

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

    # 2
    58

    # 3
    67

    # 4
    ["(MEMORY_LIMIT_EXCEEDED) (version", " = 24576, offset = 0): While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread).", "2 (5f30ce73-d792-4409-8626-e5e307da7fa9) located on disk s3WithKeeperDisk of type s3, from mark 0 with max_rows_to_rea", "table prod_events.event_history_", "792-4409-8626-e5e307da7fa9/patch-f18f7271629a324b0d26b6ad0b83a6c2-all_1165922_1165980_9_25416046/ in", "reading from part data/5f30ce73-", " Waiting timeout for memory to be freed is reached: (while", "iB), current RSS: 339.25 GiB, maximum: 320.40 GiB. OvercommitTracker decision", "de: 241. DB::Exception: (total) memory limit exceeded: would use 321.46 GiB (attempt to allocate chunk of 4.35 "]

    (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