19824139 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 3 of 10
Priority 0
Tags ...
Node customer_api@10.10.0.159
Queue Time 05:04.287
Run Time 00:00.897
Inserted 4h ago
Scheduled 3h ago
Completed 3h ago (00:01)
Cancelled
Discarded

Args

%{
  "account_id" => "136930",
  "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" => 1772760113586684,
  "recorded" => true,
  "return" => "g1AAAABUeJwrYWBgYC7nLS1OLSqOL0pNTM5ITUliYGAULJdOKs3MSUktik8tS80riUdRkchQLpFXUBxfXFpUllqJJmcCAKgDHiI",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-7955-778f-b357-8ffda446a8f5"
}

Recorded Output

%{
  users_reached: 273,
  builder_event_users_reached: 0,
  nps_survey_users_reached: 52
}

Errors

Attempt 2—3h 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", ", 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", "ar, unbound: 0: (while reading column user_id): (attempt to read data part all_21886005_22284903_36_22488012", "cd0d0c2-d535-472e-ad87-48fbfb26a6ec:1070, kind: Regu", ": 4194304, reserved size: 4194304, downloader id: None, current write offset: 2164260864, caller id: ", "e5a68b19bd9bfc8d2, state: DOWNLOADED, downloaded siz", "87-48fbfb26a6ec:1070, file segment info: File segment: [2160066560, 2164260863], key: 470c50b4c4774e", "l_position: 2160382077, internal buffer end: 299377, read_type: CACHED, last caller: 4cd0d0c2-d535-472e-a", "yjflqohmigxvnnwtiri, hash key: 470c50b4c4774e4e5a68b19bd9bfc8d2, file_offset_of_buffer_end: 2160365937, read_unt", "rror: Cache info: Buffer path: ch-s3-30f/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/dxa/fvnzpxwzu", "bd9bfc8d2/2160066560: , errno: 5, strerror: Input/output ", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/470/470c50b4c4774e4e5a68b1"]

    (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—3h 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
    55

    # 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_21886005_22284903_36_22488012 (state Active) faile", "rrent write offset: 2164260864, caller id: f016a61b-3858-48de-b596-8a547a721d98:2086, kind: Regular, unbound: 0: (whi", "fc8d2, state: DOWNLOADED, downloaded size: 4194304, reserved size: 4194304, downloader id: None, c", " [2160066560, 2164260863], key: 470c50b4c4774e4e5a68b19bd9", "96-8a547a721d98:2086, file segment info: File segment", "l_position: 2160382077, internal buffer end: 299377, read_type: CACHED, last caller: f016a61b-3858-48de-b", "yjflqohmigxvnnwtiri, hash key: 470c50b4c4774e4e5a68b19bd9bfc8d2, file_offset_of_buffer_end: 2160365937, read_unt", "rror: Cache info: Buffer path: ch-s3-30f/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/dxa/fvnzpxwzu", "bd9bfc8d2/2160066560: , errno: 5, strerror: Input/output ", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/470/470c50b4c4774e4e5a68b1"]

    (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