19821771 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 2 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 11:05.105
Run Time 00:01.528
Inserted 1d ago
Scheduled 23h ago
Completed 23h ago (00:02)
Cancelled
Discarded

Args

%{
  "account_id" => "123055",
  "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" => 1772759827217798,
  "recorded" => true,
  "return" => "g1AAAABUeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYGCULZdOKs3MSUktik8tS80riUdRkWhdLpFXUBxfXFpUllqJJicJALFnHk4",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-790d-782e-8ac7-f77d3dbd420b"
}

Recorded Output

%{
  users_reached: 285,
  builder_event_users_reached: 59,
  nps_survey_users_reached: 25
}

Errors

Attempt 1—23h 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
    52

    # 3
    67

    # 4
    ["ool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.737", ", or data is corrupted. Please retry the query: While executing MergeTreeSelect(pool: PrefetchedRead", " It can mean that some retryable error happene", "(state Active) failed with error", "ound: 0: (while reading column name): (attempt to read data part all_24202139_24567826_35_24568582", "fee6-8c8f-4805-805d-1757194b09a9:2071, kind: Regular, un", ": 4194304, reserved size: 4194304, downloader id: None, current write offset: 8388608, caller id: 977", "4194304, 8388607], key: 26bde793c70bd2d4456c607565827f30, state: DOWNLOADED, downloaded siz", "05d-1757194b09a9:2071, file segment info: File segment: ", "last caller: 9778fee6-8c8f-4805-", " 6794539, internal buffer end: 2599215, read_type: CACHED,", "omuzs, hash key: 26bde793c70bd2d4456c607565827f30, file_offset_of_buffer_end: 6793519, read_until_position", "ror: Cache info: Buffer path: ch-s3-b42/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/kkz/tvsmrcqrwflgxemejdhyqvt", "565827f30/4194304: , errno: 5, strerror: Input/output e", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/26b/26bde793c70bd2d4456c60"]

    (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