Skip to content

Conversation

@codingjoe
Copy link
Owner

Django's task framework provides native unified framework to
interact with any 3rd party task runner, like Celery, Dramatiq or
RQ. This step will allow us to greatly redurece the complexity of
this package once Django 5.2 LTS reaches EoL.

Starting with Django 6.0 we are default to the new task framework
while providing fallblack options with pending deprecation warnings.

Copilot AI review requested due to automatic review settings December 7, 2025 14:32
@codingjoe codingjoe self-assigned this Dec 7, 2025
@codingjoe codingjoe requested a review from amureki December 7, 2025 14:33
@codecov
Copy link

codecov bot commented Dec 7, 2025

Codecov Report

❌ Patch coverage is 89.28571% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.42%. Comparing base (bcd5709) to head (181185b).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pictures/tasks.py 89.28% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              main     #241      +/-   ##
===========================================
- Coverage   100.00%   99.42%   -0.58%     
===========================================
  Files           13       13              
  Lines          495      518      +23     
===========================================
+ Hits           495      515      +20     
- Misses           0        3       +3     
Flag Coverage Δ
celery 82.81% <35.71%> (-2.24%) ⬇️
cleanup 85.71% <25.00%> (-2.78%) ⬇️
dj4.2 85.71% <25.00%> (-2.78%) ⬇️
dj5.1 85.71% <25.00%> (-2.78%) ⬇️
dj6.0 86.87% <46.42%> (?)
django-rq 82.81% <35.71%> (-2.24%) ⬇️
dramatiq 82.81% <39.28%> (-2.24%) ⬇️
drf 93.24% <25.00%> (-3.13%) ⬇️
macos-latest 87.06% <46.42%> (-1.63%) ⬇️
py3.10 85.71% <25.00%> (-2.78%) ⬇️
py3.11 85.71% <25.00%> (-2.78%) ⬇️
py3.12 85.71% <25.00%> (-2.78%) ⬇️
py3.13 85.71% <25.00%> (-2.78%) ⬇️
py3.14 85.71% <25.00%> (-2.78%) ⬇️
ubuntu-latest 86.87% <46.42%> (-1.62%) ⬇️
windows-latest 79.58% <46.42%> (-2.01%) ⬇️

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.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for Django 6.0's native task framework to handle async image processing. The implementation provides fallback options for existing Celery, Dramatiq, and Django RQ integrations with pending deprecation warnings for Django 6.0+.

Key changes:

  • Added Django Tasks backend integration as the default processor for Django 6.0+
  • Renamed existing processor functions and added deprecation warnings for legacy task runners
  • Updated documentation to guide users on configuring Django Tasks

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
pictures/tasks.py Adds Django Tasks integration with @task decorator, renames legacy processor functions, and adds deprecation warnings for Django 6.0+
pictures/conf.py Adds BACKEND configuration option for Django Tasks backend selection
tests/test_tasks.py Adds test case for Django Tasks misconfiguration validation
tests/testapp/settings.py Adds Django Tasks configuration for test environment
README.md Updates documentation to describe Django Tasks setup and deprecation of legacy integrations
pyproject.toml Updates supported Django versions, removes 5.1 and adds 6.0
.github/workflows/ci.yml Adds Django 6.0 to CI test matrix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Django's task framework provides native unified framework to
interact with any 3rd party task runner, like Celery, Dramatiq or
RQ. This step will allow us to greatly redurece the complexity of
this package once Django 5.2 LTS reaches EoL.

Starting with Django 6.0 we are default to the new task framework
while providing fallblack options with pending deprecation warnings.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 7, 2025 14:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 12 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 7, 2025 14:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@amureki amureki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks solid, however I did not have a chance to test this on actual Django 6.0 yet.

Copilot AI review requested due to automatic review settings December 8, 2025 09:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codingjoe codingjoe merged commit 0bd30af into main Dec 8, 2025
19 of 21 checks passed
@codingjoe codingjoe deleted the issues/240/tasks branch December 8, 2025 13:28
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.

3 participants