19823227 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 3 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 05:18.254
Run Time 00:02.216
Inserted 6h ago
Scheduled 5h ago
Completed 4h ago (00:03)
Cancelled
Discarded

Args

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

Meta

%{
  "deps" => ["generate_event_counts"],
  "name" => "generate_users_reached",
  "on_hold" => false,
  "orig_scheduled_at" => 1772760008918897,
  "recorded" => true,
  "return" => "g1AAAABXeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYIx9WS6dVJqZk5JaFJ9alppXEo+mgoH5U7lEXkFxfHFpUVlqJap0IgMASNggGQ",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-7942-7bbf-b2e9-8364f7c4ab69"
}

Recorded Output

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

Errors

Attempt 2—5h ago

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

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

    # 1
    "R) (version 25.10.1.7375 (official build))\n"

    # 2
    54

    # 3
    67

    # 4
    ["cuting MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTO", "n mean that some retryable error happened, or data is corrupted. Please retry the query: While ex", " user_id): (attempt to read data part all_17735707_18139315_74_22488012 (state Active) failed with error. It c", "unbound: 0: (while reading colum", " 10d2d22d-3508-45d7-9758-2696f6b37a66:2073, kind: Regular,", "loaded size: 1048576, reserved size: 1048576, downloader id: None, current write offset: 2857369600, caller id", "e segment: [2856321024, 2860515327], key: a8eac049d341404367019aed2573e262, state: PARTIALLY_DOWNLOADED, dow", "08-45d7-9758-2696f6b37a66:2073, file segment info: Fi", "_until_position: 2856504321, internal buffer end: 126208, read_type: CACHED, last caller: 10d2d22d-3", "rkvmrgjqqddlnsbtjpvq, hash key: a8eac049d341404367019aed2573e262, file_offset_of_buffer_end: 2856447232, rea", "129e2-f47e-4b75-bbcb-8441591d3836/mergetree/gdm/aeumhrww", "d2573e262/2856321024: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-d11/aa", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/a8e/a8eac049d341404367019a"]

    (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—5h ago

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

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

    # 1
    "PTOR) (version 25.10.1.7375 (official build))\n"

    # 2
    54

    # 3
    67

    # 4
    ["uery: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRI", " with error. It can mean that some retryable error happened, or data is corrupted. Please retry the ", "e reading column user_id): (attempt to read data part all_17735707_18139315_74_22488012 (state Active) faile", "rrent write offset: 2857369600, caller id: 5f7f67c4-130a-40fb-8735-be9dc7a3a05c:1749, kind: Regular, unbound: 0: (whi", "8576, reserved size: 1048576, downloader id: None, c", "3e262, state: PARTIALLY_DOWNLOADED, downloaded size: 10", "ile segment: [2856321024, 2860515327], key: a8eac049d341404367019aed25", "0a-40fb-8735-be9dc7a3a05c:1749, file segment info: ", "_until_position: 2856504321, internal buffer end: 126208, read_type: CACHED, last caller: 5f7f67c4-1", "rkvmrgjqqddlnsbtjpvq, hash key: a8eac049d341404367019aed2573e262, file_offset_of_buffer_end: 2856447232, rea", "129e2-f47e-4b75-bbcb-8441591d3836/mergetree/gdm/aeumhrww", "d2573e262/2856321024: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-d11/aa", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/a8e/a8eac049d341404367019a"]

    (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