19815351 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 3 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 08:01.344
Run Time 00:00.496
Inserted 12h ago
Scheduled 10h ago
Completed 10h ago (00:01)
Cancelled
Discarded

Args

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

Meta

%{
  "deps" => ["generate_event_counts"],
  "name" => "generate_users_reached",
  "on_hold" => false,
  "orig_scheduled_at" => 1772759022885653,
  "recorded" => true,
  "return" => "g1AAAABReJwrYWBgYC7nLS1OLSqOL0pNTM5ITUn8US6dVJqZk5JaFJ9alppXEo8qfaJcIq+gOL64tKgstRJNzhMA4Dkf5A",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-786b-75eb-af8f-ed59624c78ff"
}

Recorded Output

%{
  users_reached: 248,
  builder_event_users_reached: 200,
  nps_survey_users_reached: 73
}

Errors

Attempt 2—10h ago

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

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

    # 1
    "hread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.7375 (official build))\n"

    # 2
    56

    # 3
    67

    # 4
    [" data is corrupted. Please retry the query: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: T", " all_4665630_4675578_15_22488012 (state Active) failed with error. It can mean that some retryable error happened, o", "ddc:1012, kind: Regular, unbound: 0: (while reading column attributes): (attempt to read data par", "dc6d7d49-ebc3-4dd5-86d8-1569b80b", "loaded size: 4194304, reserved size: 4194304, downloader id: None, current write offset: 255852544, caller id:", "o: File segment: [251658240, 255852543], key: cab258e6421a48a506fc14ba7270b01d, state: DOWNLOADED, dow", "nal buffer end: 269183, read_type: CACHED, last caller: dc6d7d49-ebc3-4dd5-86d8-1569b80baddc:1012, file segment in", "6421a48a506fc14ba7270b01d, file_offset_of_buffer_end: 251927423, read_until_position: 251980941, inte", "a8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/rou/agphqaiibjjpdyfwqousomboravud, hash key: cab258", "a7270b01d/251658240: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-244/", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/cab/cab258e6421a48a506fc14"]

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

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

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

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

    # 2
    55

    # 3
    67

    # 4
    ["ergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FRO", "an that some retryable error happened, or data is corrupted. Please retry the query: While executing ", "mn attributes): (attempt to read data part all_4665630_4675578_15_22488012 (state Active) failed with error. It can m", "ea9:2119, kind: Regular, unbound: 0: (while reading col", "9c036099-820b-44c1-8aaa-c741978c", "loaded size: 4194304, reserved size: 4194304, downloader id: None, current write offset: 255852544, caller id:", "o: File segment: [251658240, 255852543], key: cab258e6421a48a506fc14ba7270b01d, state: DOWNLOADED, dow", "nal buffer end: 269183, read_type: CACHED, last caller: 9c036099-820b-44c1-8aaa-c741978c7ea9:2119, file segment in", "6421a48a506fc14ba7270b01d, file_offset_of_buffer_end: 251927423, read_until_position: 251980941, inte", "a8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/rou/agphqaiibjjpdyfwqousomboravud, hash key: cab258", "a7270b01d/251658240: , errno: 5, strerror: Input/output error: Cache info: Buffer path: ch-s3-244/", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/cab/cab258e6421a48a506fc14"]

    (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