Skip to content

Failed 'open_prices.common.tasks.update_product_counts_task' (spaghetti-sixteen-quebec-oranges) - Task exceeded maximum timeout value (21600 seconds) : Traceback (most recent call last): #1125

@sentry

Description

@sentry

Sentry Issue: OPEN-PRICES-445

Failed 'open_prices.common.tasks.update_product_counts_task' (spaghetti-sixteen-quebec-oranges) - Task exceeded maximum timeout value (21600 seconds) : Traceback (most recent call last):
  File "/opt/pysetup/.venv/lib/python3.11/site-packages/django_q/worker.py", line 103, in worker
    res = f(*task["args"], **task["kwargs"])
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/open-prices/open_prices/common/tasks.py", line 77, in update_product_counts_task
    product.update_user_count()
  File "/opt/open-prices/open_prices/products/models.py", line 203, in update_user_count
    .count()
     ^^^^^^^
  File "/opt/pysetup/.venv/lib/python3.11/site-packages/django/db/models/query.py", line 620, in count
    return self.query.get_count(using=self.db)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/pysetup/.venv/lib/python3.11/site-packages/django/db/models/sql/query.py", line 630, in get_count
    return obj.get_aggregation(using, {"__count": Count("*")})["__count"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/pysetup/.venv/lib/python3.11/site-packages/django/db/models/sql/query.py", line 616, in get_aggregation
    result = compiler.execute_sql(SINGLE)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/pysetup/.venv/lib/python3.11/site-packages/django/db/models/sql/compiler.py", line 1574, in execute_sql
    cursor.execute(sql, params)
  File "/opt/pysetup/.venv/lib/python3.11/site-packages/sentry_sdk/utils.py", line 1851, in runner
    return sentry_patched_function(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/pysetup/.venv/lib/python3.11/site-packages/sentry_sdk/integrations/django/__init__.py", line 652, in execute
    result = real_execute(self, sql, params)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/pysetup/.venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 79, in execute
    return self._execute_with_wrappers(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/pysetup/.venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
    return executor(sql, params, many, context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/pysetup/.venv/lib/python3.11/site-packages/django/db/backends/utils.py", line 105, in _execute
    return self.cursor.execute(sql, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/encodings/utf_8.py", line 15, in decode
    def decode(input, errors='strict'):
    
  File "/opt/pysetup/.venv/lib/python3.11/site-packages/django_q/timeout.py", line 15, in raise_timeout_exception
    raise TimeoutException(
django_q.exceptions.TimeoutException: Task exceeded maximum timeout value (21600 seconds)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions