19829447 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 2 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.158
Queue Time 09:57.674
Run Time 00:09.002
Inserted 1d ago
Scheduled 1d ago
Completed 1d ago (00:10)
Cancelled
Discarded

Args

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

Meta

%{
  "deps" => ["generate_event_counts"],
  "name" => "generate_users_reached",
  "on_hold" => false,
  "orig_scheduled_at" => 1772760433127772,
  "recorded" => true,
  "return" => "g1AAAABReJwrYWBgYC7nLS1OLSqOL0pNTM5ITUn0K5dOKs3MSUktik8tS80riUeVZiiXyCsoji8uLSpLrUSXAwChcB4p",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-79df-799f-a5b7-19cdc407475e"
}

Recorded Output

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

Errors

Attempt 1—1d ago

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

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

    # 1
    "d))\n"

    # 2
    43

    # 3
    67

    # 4
    ["ool, algorithm: Thread). (CANNOT_OPEN_FILE) (version 25.10.1.7375 (official buil", "d, or data is corrupted. Please retry the query: While executing MergeTreeSelect(pool: PrefetchedRead", "t all_14543061_14556561_16_22488012 (state Active) failed with error. It can mean that some retryable error happen", "): (while reading column attributes): (attempt to read data pa", "ugajgwge (position: 32953228589, typename: DB::AsynchronousBoundedReadBuffer, compressed data header: <uninitialized", "e reading or decompressing ch-s3-7fe/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/daa/twhwhmpxmpdsutrmnoog", "set: 32950452224, caller id: c8cc75ee-d90f-452f-9e99-111ddb1b1e47:1172, kind: Regular, unbound: 0: Whi", "ee-d90f-452f-9e99-111ddb1b1e47:1172, current write of", "NUATION, downloaded size: 0, reserved size: 1048576, downloader id: c8cc7", "bc2e6721227f4f46bd54, state: PARTIALLY_DOWNLOADED_NO_CONT", "-9e99-111ddb1b1e47:1172, file segment info: File segment: [32950452224, 32954646527], key: cf6f1a7ed0e", "uffer end: 32951500800, read_type: REMOTE_FS_READ_AND_PUT_IN_CACHE, last caller: c8cc75ee-d90f-452", "28589, read_until_position: 32953318977, internal ", "whmpxmpdsutrmnoogtugajgwge, hash key: cf6f1a7ed0e9bc2e6721227f4f46bd54, file_offset_of_buffer_end: 32953", "29e2-f47e-4b75-bbcb-8441591d3836/mergetree/daa/tw", "e-d90f-452f-9e99-111ddb1b1e47:1172, kind: Regular, unbound: 0: Cache info: Buffer path: ch-s3-7fe/aa8", "r id: c8cc75ee-d90f-452f-9e99-111ddb1b1e47:1172, current write offset: 32950452224, caller id: c8cc75", "reserved size: 1048576, download", "DOWNLOADING, downloaded size: 0,", "ystem, current cache state: File segment: [32950452224, 32954646527], key: cf6f1a7ed0e9bc2e6721227f4f46bd54, state:", "/32950452224: , errno: 30, strerror: Read-only file ", " system: Cannot open file /mnt/clickhouse-cache/sharedS3DiskCache/cf6/cf6f1a7ed0e9bc2e6721227f4f46bd5", "bd54/32950452224: , errno: 30, strerror: Read-only fil", "de: 76. DB::Exception: Cannot open file /mnt/clickhouse-cache/sharedS3DiskCache/cf6/cf6f1a7ed0e9bc2e6721227f4f4"]

    (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