20099806 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 3 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 00:00.680
Run Time 01:33.409
Inserted 5h ago
Scheduled 4h ago
Completed 4h ago (01:34)
Cancelled
Discarded

Args

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

Meta

%{
  "deps" => ["generate_event_counts"],
  "name" => "generate_users_reached",
  "on_hold" => false,
  "orig_scheduled_at" => 1773018234520929,
  "recorded" => true,
  "return" => "g1AAAABReJwrYWBgYC7nLS1OLSqOL0pNTM5ITUnkLZdOKs3MSUktik8tS80riUeVZiiXyCsoji8uLSpLrUSXAwCSNB3o",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019ccff2-7d52-76a6-9bc3-fbb92972bbd5"
}

Recorded Output

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

Errors

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
    "Thread). (MEMORY_LIMIT_EXCEEDED) (version 25.10.1.7525 (official build))\n"

    # 2
    59

    # 3
    67

    # 4
    ["ike(__table1.name, 'app... UInt8 : 5': While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: ", "table1... :: 6) -> or(in(__table1.name, __set_String_9530117319775830752_1181517055147020012), ", "m:%'_String) : 1, and(equals(__table1.name, 'appcues:v2:experience_started'_String), equals(JSONExtractString(_", "47020012) :: 7, like(__table1.name, 'appcues_cust", " __set_String_9530117319775830752_1181517055", "ision: Memory overcommit has not freed enough memory: while executing 'FUNCTION or(in(__table1.name", "iB), current RSS: 228.79 GiB, maximum: 320.40 GiB. OvercommitTracker de", "de: 241. DB::Exception: (total) memory limit exceeded: would use 321.60 GiB (attempt to allocate chunk of 2.19 "]

    (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
    "T_EXCEEDED) (version 25.10.1.7525 (official build))\n"

    # 2
    58

    # 3
    67

    # 4
    ["algorithm: Thread). (MEMORY_LIMI", " While executing MergeTreeSelect(pool: PrefetchedReadPool,", "ated on disk s3WithKeeperDisk of type s3, from mark 22208 with max_rows_to_read = 5809, offset = 0)", "5f30ce73-d792-4409-8626-e5e307da7fa9) lo", "792-4409-8626-e5e307da7fa9/all_23863211_24202138_37_24192759/ in table prod_events.event_history_v2 ", "reading from part data/5f30ce73-", "ision: Waiting timeout for memory to be freed is reached: (while reading column attributes): (while", "iB), current RSS: 337.92 GiB, maximum: 320.40 GiB. OvercommitTracker de", "de: 241. DB::Exception: (total) memory limit exceeded: would use 325.26 GiB (attempt to allocate chunk of 1.00 "]

    (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