19827274 CustomerApi.Jobs.GenerateAccountMetrics
Queue clickhouse_account_metrics
Attempt 4 of 10
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 03:22.153
Run Time 00:03.695
Inserted 6h ago
Scheduled 4h ago
Completed 4h ago (00:04)
Cancelled
Discarded

Args

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

Meta

%{
  "deps" => ["generate_user_counts"],
  "name" => "generate_event_counts",
  "on_hold" => false,
  "orig_scheduled_at" => 1772758238634714,
  "recorded" => true,
  "return" => "g1AAAAGieJxVkE1OwzAQhb2BBbRRhVh0y4YN9+g1LMd5TS0cjzXjxHA3rsERuAeOHQpsLL3P8/PeJKXUMd9iQUjSq+fPlyKYicWovM9uGJG0JzNgKOD+7CmLlgvlUORuJONFT06kfu+bZhh7qaALUfSAxMamNnK3koC5IF9XrDoyTZRQC+6iGaEXh1zsPB2/8k4sA6GhUvAwUe88NN4i2CFYtDYXfo0d1qky84L3K3v8wxgSKUjtPGAyrrg2KWGKqeXcmJSrrDE22dNc1tWkGzmX9x+giNCib8B6Z19bSW9CKCGvjjoTo50h+uf6Nx+n3PWz8wN4g0Z9A+/1mkU",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-79b5-7773-b70e-8357e745152c"
}

Recorded Output

%{
  events: 2544939,
  errors: 0,
  widget_loaded: 0,
  flows_shown: 0,
  goals_missed: 0,
  goals_reached: 0,
  nps_detractors: 0,
  nps_neutrals: 0,
  nps_promoters: 0,
  page_views: 2169061,
  screen_views: 0,
  mobile_experiences: 0,
  pins_shown: 0,
  nps_survey_shown: 0,
  nps_survey_responses: 0,
  emails_attempted: 0,
  emails_sent: 0,
  emails_bounced: 0,
  emails_failed: 0,
  emails_opened: 0,
  emails_clicked: 0,
  banners_shown: 0,
  appcues_events: 375878,
  builder_events: 0
}

Errors

Attempt 3—4h ago

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

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

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

    # 2
    58

    # 3
    67

    # 4
    ["(MEMORY_LIMIT_EXCEEDED) (version", " = 65536, offset = 0): While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread).", "2 (5f30ce73-d792-4409-8626-e5e307da7fa9) located on disk s3WithKeeperDisk of type s3, from mark 0 with max_rows_to_rea", "table prod_events.event_history_", "792-4409-8626-e5e307da7fa9/patch-f18f7271629a324b0d26b6ad0b83a6c2-all_1165734_1165744_1_24588213/ in", "reading from part data/5f30ce73-", " Waiting timeout for memory to be freed is reached: (while", "iB), current RSS: 298.79 GiB, maximum: 320.40 GiB. OvercommitTracker decision", "de: 241. DB::Exception: (total) memory limit exceeded: would use 344.96 GiB (attempt to allocate chunk of 4.43 "]

    (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—5h 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
    53

    # 3
    67

    # 4
    ["uery: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRI", "e Active) failed with error. It can mean that some retryable error happened, or data is corrupted. Please retry the ", "alized>): (while reading column timestamp): (attempt to read data part all_158660_163316_8_112386651 (sta", "ruljfxifuugv (position: 1369440256, typename: DB::AsynchronousBoundedReadBuffer, compressed data header: <uninit", "d: 0: While reading or decompressing ch-s3-aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ewt/pdhizqokbctspgpb", "a906-4314677ee2f9:43147, kind: Regular, unbou", " size: 4194304, downloader id: None, current write offset: 1371537408, caller id: 24da47c4-1da0-41ec", "c9, state: DOWNLOADED, downloaded size: 4194304, reserve", "9:43147, file segment info: File segment: [1367343104, 1371537407], key: 6dedc3f0246cbb5c1dad58522010c", "ition: 1369468241, internal buffer end: 2097152, read_type: CACHED, last caller: 24da47c4-1da0-41ec-a906-4314677ee2", "fxifuugv, hash key: 6dedc3f0246cbb5c1dad58522010c8c9, file_offset_of_buffer_end: 1369440256, read_until_po", "ut error: Cache info: Buffer path: ch-s3-aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ewt/pdhizqokbctspgpbprul", "22010c8c9/1367343104: , errno: 5, strerror: Input/out", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/6de/6dedc3f0246cbb5c1dad58"]

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

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

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

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

    # 2
    52

    # 3
    67

    # 4
    [" query: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Thread). (CANNOT_READ_FR", "ate Active) failed with error. It can mean that some retryable error happened, or data is corrupted. Please retry th", "tialized>): (while reading column timestamp): (attempt to read data part all_158660_163316_8_112386651 (s", "fxifuugv (position: 1369440256, typename: DB::AsynchronousBoundedReadBuffer, compressed data header: <unin", "le reading or decompressing ch-s3-aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ewt/pdhizqokbctspgpbprul", "ent write offset: 1371537408, caller id: e9febf4f-bcee-4dbd-8381-d45a91bfb667:42416, kind: Regular, unbound: 0: Wh", " 4194304, reserved size: 4194304, downloader id: None, cur", "c1dad58522010c8c9, state: DOWNLOADED, downloaded size", "1371537407], key: 6dedc3f0246cbb", "7:42416, file segment info: File segment: [1367343104,", "ition: 1369468241, internal buffer end: 2097152, read_type: CACHED, last caller: e9febf4f-bcee-4dbd-8381-d45a91bfb6", "fxifuugv, hash key: 6dedc3f0246cbb5c1dad58522010c8c9, file_offset_of_buffer_end: 1369440256, read_until_po", "ut error: Cache info: Buffer path: ch-s3-aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/ewt/pdhizqokbctspgpbprul", "22010c8c9/1367343104: , errno: 5, strerror: Input/out", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/6de/6dedc3f0246cbb5c1dad58"]

    (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