Skip to content

Conversation

@sergey-misuk-valor
Copy link
Contributor

@sergey-misuk-valor sergey-misuk-valor commented Apr 3, 2025

We get an error coming from django-celery-boost

AttributeError
'DisabledBackend' object has no attribute '_get_task_meta_for'

this error comes from the line in django-celery-boost/src/django_celery_boost/models.py

info = self.async_result._get_task_meta()

As proposed here https://stackoverflow.com/a/37408190 this can be solved by creating AsyncResult directly from Celery app instance or explicitly providing it in AsyncResult constructor call

@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.31%. Comparing base (17ace38) to head (94efcd0).
Report is 3 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop       #5   +/-   ##
========================================
  Coverage    94.31%   94.31%           
========================================
  Files            4        4           
  Lines          352      352           
  Branches        39       39           
========================================
  Hits           332      332           
  Misses          14       14           
  Partials         6        6           
Flag Coverage Δ
unittests 94.31% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@domdinicola domdinicola requested a review from saxix April 3, 2025 15:59
@sergey-misuk-valor sergey-misuk-valor merged commit 60b008c into develop Apr 3, 2025
9 checks passed
@sergey-misuk-valor sergey-misuk-valor deleted the bugfix/use-specific-celery-app-for-async-result branch April 3, 2025 17:11
@sergey-misuk-valor sergey-misuk-valor restored the bugfix/use-specific-celery-app-for-async-result branch April 3, 2025 17:28
@domdinicola domdinicola deleted the bugfix/use-specific-celery-app-for-async-result branch April 4, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants