19827370 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.064
Run Time 00:07.503
Inserted 12h ago
Scheduled 10h ago
Completed 10h ago (00:08)
Cancelled
Discarded

Args

%{
  "account_id" => "208503",
  "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" => 1772758240467815,
  "recorded" => true,
  "return" => "g1AAAAGreJxVkUFOwzAQRc2GSpBEFeqCe7DjDNzBGjvT1OCMLY+TAfUE3I2zsOoBcOJQwcbSf/oz/t/OSqlHucUZKbNR56dzESmFxPAlrbh+wKx9gB57UHJ/9EFY8ykIGXVzeJFmCOBZj455dbRVJwR7WkFHkXWPOYHNy1YlzUIIp4L8ottFxxTGkHE13EUYUM8OpSSi529p2CZEqqgYHsZgnEeN7xGTQ7JYxxxds6nXT9kvi3lKM35UXEyHPywhx0C8Du9xBFeCQ844xlzbbozL2yxNNmnCVG5cy27kWM5/IESk2n4D1jv7Vi0GiErPa9DdTjqI0U7I+vcbmstFOjM532PaIKgf4K+d3g",
  "structured" => true,
  "workflow" => true,
  "workflow_id" => "019cc07f-79b6-719f-97d0-f573414b2e6f"
}

Recorded Output

%{
  events: 8074107,
  errors: 204,
  widget_loaded: 0,
  flows_shown: 70732,
  goals_missed: 0,
  goals_reached: 0,
  nps_detractors: 0,
  nps_neutrals: 0,
  nps_promoters: 0,
  page_views: 7224046,
  screen_views: 0,
  mobile_experiences: 0,
  pins_shown: 27273,
  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: 1799,
  appcues_events: 849140,
  builder_events: 0
}

Errors

Attempt 3—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
    "chedReadPool, algorithm: Thread). (MEMORY_LIMIT_EXCEEDED) (version 25.10.1.7375 (official build))\n"

    # 2
    60

    # 3
    67

    # 4
    ["rom mark 93589 with max_rows_to_read = 6145, offset = 0): While executing MergeTreeSelect(pool: Prefet", "rod_events.event_history_v2 (5f30ce73-d792-4409-8626-e5e307da7fa9) located on disk s3WithKeeperDisk of type s3, ", "tes): (while reading from part data/5f30ce73-d792-4409-8626-e5e307da7fa9/all_15488745_15498232_10_22488012/ in table ", "lue_size_hint = 533.92875, avg_chars_size = 631.1145, limit = 6145): (while reading column attrib", " Waiting timeout for memory to be freed is reached: (avg_v", "iB), current RSS: 298.57 GiB, maximum: 320.40 GiB. OvercommitTracker decision", "de: 241. DB::Exception: (total) memory limit exceeded: would use 343.40 GiB (attempt to allocate chunk of 5.06 "]

    (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—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
    ")\n"

    # 2
    53

    # 3
    67

    # 4
    ["adPool, algorithm: Thread). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.7375 (official build)", "ile reading part all_114859200_115419798_41_115426027: While executing MergeTreeSelect(pool: PrefetchedR", "rror. It can mean that some retryable error happened, or data is corrupted. Please retry the query: W", "lumn user_id.size): (attempt to read data part all_114859200_115419798_41_115426027 (state Active) failed with ", " kind: Regular, unbound: 0: (while reading c", "er id: None, current write offset: 1883242496, caller id: f14439cf-b54f-4837-afe2-258f31d9f49b:42367", "OWNLOADED, downloaded size: 4194304, reserved size: 4194304, downloa", "3242495], key: 7d63992ad0a5f27cc8378993361a3ab4, state: ", "b:42367, file segment info: File segment: [1879048192, 18", "n: 1881426340, internal buffer end: 2352836, read_type: CACHED, last caller: f14439cf-b54f-4837-afe2-258f31d9f4", "nbpdmwnurwjpdkkpmdp, hash key: 7d63992ad0a5f27cc8378993361a3ab4, file_offset_of_buffer_end: 1881401028, read_until_positi", "rror: Cache info: Buffer path: ch-s3-97e/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/tyx/atofvropw", "3361a3ab4/1879048192: , errno: 5, strerror: Input/output ", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/7d6/7d63992ad0a5f27cc83789"]

    (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—11h 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). (CANNOT_READ_FROM_FILE_DESCRIPTOR) (version 25.10.1.7375 (official build))\n"

    # 2
    54

    # 3
    67

    # 4
    ["t all_114859200_115419798_41_115426027: While executing MergeTreeSelect(pool: PrefetchedReadPool, algorithm: Threa", "an that some retryable error happened, or data is corrupted. Please retry the query: While reading pa", "mpt to read data part all_114859200_115419798_41_115426027 (state Active) failed with error. It can m", "while reading column user_id.size): (att", "t write offset: 1883242496, caller id: 4f53aa3f-2ccb-4206-aa23-388ed4feffa2:43181, kind: Regular, unbound: 0: ", ", reserved size: 4194304, downloader id: None, curre", "61a3ab4, state: DOWNLOADED, downloaded size: 419430", "2:43181, file segment info: File segment: [1879048192, 1883242495], key: 7d63992ad0a5f27cc8378993", "n: 1881426340, internal buffer end: 2352836, read_type: CACHED, last caller: 4f53aa3f-2ccb-4206-aa23-388ed4feff", "nbpdmwnurwjpdkkpmdp, hash key: 7d63992ad0a5f27cc8378993361a3ab4, file_offset_of_buffer_end: 1881401028, read_until_positi", "rror: Cache info: Buffer path: ch-s3-97e/aa8129e2-f47e-4b75-bbcb-8441591d3836/mergetree/tyx/atofvropw", "3361a3ab4/1879048192: , errno: 5, strerror: Input/output ", "de: 74. DB::Exception: Cannot read from file /mnt/clickhouse-cache/sharedS3DiskCache/7d6/7d63992ad0a5f27cc83789"]

    (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