19824379 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 4 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.158
Queue Time 02:23.041
Run Time 00:01.976
Inserted 16h ago
Scheduled 14h ago
Completed 14h ago (00:02)
Cancelled
Discarded

Args

%{
  "account_id" => "139378",
  "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" => 1772760118343498,
  "recorded" => true,
  "return" => "g1AAAABUeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYGCUKJdOKs3MSUktik8tS80riUdRkXi1XCKvoDi+uLSoLLUSTY4BAMGUHso",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-7959-7cee-90cb-920ba183449e"
}

Recorded Output

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

Errors

Attempt 3—14h ago

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

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

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

    # 2
    53

    # 3
    67

    # 4
    ["ool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.737", "d, or data is corrupted. Please retry the query: While executing MergeTreeSelect(pool: PrefetchedRead", "that some retryable error happen", "mn user_id): (attempt to read data part all_5802069_5956277_61_22488012 (state Active) failed with error. It can mean", "6:1012, kind: Regular, unbound: 0: (while reading col", "12, caller id: c1926aec-248d-4685-90c7-f2e1837d71", "ate: DOWNLOADED, downloaded size: 4194304, reserved size: 4194304, downloader id: None, current write offset: 222298", "2298111], key: e2d4ef2c99e0ddd0b294e81be4cbcaf3, s", "2, file segment info: File segment: [218103808, 2", "ion: 218609957, internal buffer end: 480776, read_type: CACHED, last caller: c1926aec-248d-4685-90c7-f2e1837d7156:10", "qgznfnectnhsuufh, hash key: e2d4ef2c99e0ddd0b294e81be4cbcaf3, file_offset_of_buffer_end: 218584584, read_until_posi", "utput error: Cache info: Buffer path: ch-s3-d01/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ddb/ebrigoigmwcd", "be4cbcaf3/218103808: , errno: 5, strerror: Input/", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/e2d/e2d4ef2c99e0ddd0b294e8"]

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

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

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

    # 1
    "ld))\n"

    # 2
    52

    # 3
    67

    # 4
    ["dReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.7375 (official bui", "yable error happened, or data is corrupted. Please retry the query: While executing MergeTreeSelect(pool: Prefetch", "error. It can mean that some ret", "802069_5956277_61_22488012 (state Active) failed with", "004:2042, kind: Regular, unbound: 0: (while reading column user_id): (attempt to read data part all_", "e6d1eac7-dd5f-496c-9975-51f57f31", " current write offset: 222298112, caller id:", "OADED, downloaded size: 4194304, reserved size: 4194304, downloader id: None", "8111], key: e2d4ef2c99e0ddd0b294e81be4cbcaf3, state: DOWN", "2, file segment info: File segment: [218103808, 2222", "ion: 218609957, internal buffer end: 480776, read_type: CACHED, last caller: e6d1eac7-dd5f-496c-9975-51f57f31d004:20", "qgznfnectnhsuufh, hash key: e2d4ef2c99e0ddd0b294e81be4cbcaf3, file_offset_of_buffer_end: 218584584, read_until_posi", "utput error: Cache info: Buffer path: ch-s3-d01/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ddb/ebrigoigmwcd", "be4cbcaf3/218103808: , errno: 5, strerror: Input/", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/e2d/e2d4ef2c99e0ddd0b294e8"]

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

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

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

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

    # 2
    54

    # 3
    67

    # 4
    ["ted. Please retry the query: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANN", "error happened, or data is corru", " to read data part all_5802069_5956277_61_22488012 (state Active) failed with error. It can mean that some retryable", "reading column user_id): (attemp", "322-7b8a2da18157:2094, kind: Regular, unbound: 0: (while", " size: 4194304, downloader id: None, current write offset: 222298112, caller id: 3bb4f02f-e486-4149-", ", key: e2d4ef2c99e0ddd0b294e81be4cbcaf3, state: DOWNLOADED, downloaded size: 4194304, reserve", "4, file segment info: File segment: [218103808, 222298111", "ion: 218609957, internal buffer end: 480776, read_type: CACHED, last caller: 3bb4f02f-e486-4149-8322-7b8a2da18157:20", "qgznfnectnhsuufh, hash key: e2d4ef2c99e0ddd0b294e81be4cbcaf3, file_offset_of_buffer_end: 218584584, read_until_posi", "utput error: Cache info: Buffer path: ch-s3-d01/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ddb/ebrigoigmwcd", "be4cbcaf3/218103808: , errno: 5, strerror: Input/", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/e2d/e2d4ef2c99e0ddd0b294e8"]

    (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