19910764 CustomerApi.Jobs.UpdateUsage
Queue update_usage
Attempt 2 of 5
Priority 0
Tags ...
Node customer_api@10.10.0.159
Queue Time 04:56.469
Run Time 00:07.161
Inserted 15h ago
Scheduled 15h ago
Completed 14h ago (00:08)
Cancelled
Discarded

Args

%{"account_id" => "145437", "salesforce_id" => "a248c000002FCbCAAW"}

Meta

%{"orig_scheduled_at" => 1772805605454608}

Errors

Attempt 1—15h ago

** (DBConnection.ConnectionError) [Elixir.ClickClient.Repo.PartitionSupervisor] connection not available and request was dropped from queue after 13211ms. This means requests are coming in and your connection pool cannot serve them fast enough. You can address this by:

  1. Ensuring your database is available and that you can connect to it
  2. Tracking down slow queries and making sure they are running fast enough
  3. Increasing the pool_size (although this increases resource consumption)
  4. Allowing requests to wait longer by increasing :queue_target and :queue_interval

See DBConnection.start_link/2 for more information

    (ecto_sql 3.13.4) lib/ecto/adapters/sql.ex:1113: Ecto.Adapters.SQL.raise_sql_call_error/1
    (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
    (ecto 3.13.5) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
    (ecto 3.13.5) lib/ecto/repo/queryable.ex:163: Ecto.Repo.Queryable.one/3
    (customer_api 1.21.0+0fcb3e63) lib/customer_api/services/account_usage.ex:339: CustomerApi.Services.AccountUsage.ch_usage_with_account_metrics/1
    (customer_api 1.21.0+0fcb3e63) lib/customer_api/services/account_usage.ex:42: CustomerApi.Services.AccountUsage.feature_usage/1
    (customer_api 1.21.0+0fcb3e63) lib/customer_api/jobs/update_usage.ex:8: CustomerApi.Jobs.UpdateUsage.process/1