Skip to content

Align task status with Django SUCCESSFUL#230

Merged
RealOrangeOne merged 3 commits into
RealOrangeOne:masterfrom
cnaples79:align-task-status
Feb 5, 2026
Merged

Align task status with Django SUCCESSFUL#230
RealOrangeOne merged 3 commits into
RealOrangeOne:masterfrom
cnaples79:align-task-status

Conversation

@cnaples79
Copy link
Copy Markdown
Contributor

@cnaples79 cnaples79 commented Jan 10, 2026

Summary

  • rename task result status to SUCCESSFUL to match Django 6 naming
  • keep a SUCCEEDED alias for backward compatibility and update code/docs/tests
  • add migration to update stored statuses and extend status field length

Rationale

Django 6 uses TaskResultStatus.SUCCESSFUL; aligning avoids confusion and mismatched status values while still supporting existing data and callers.

Changes

  • introduce SUCCESSFUL in TaskResultStatus (keep SUCCEEDED alias) and update backends, management command, docs, and tests
  • add database migration to update status choices/max_length and migrate persisted values from SUCCEEDED to SUCCESSFUL

Fixes #229

@@ -234,7 +234,7 @@ def claim(self, worker_id: str) -> None:

@retry()
def set_succeeded(self, return_value: Any, metadata: dict) -> None:
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Issue: Rename this method

@@ -73,7 +73,7 @@ def ready(self) -> "DBTaskResultQuerySet":
)

def succeeded(self) -> "DBTaskResultQuerySet":
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Issue: Rename this method

@RealOrangeOne RealOrangeOne merged commit 17bd95f into RealOrangeOne:master Feb 5, 2026
149 of 150 checks passed
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.

TaskResultStatus uses SUCCEEDED but Django 6 uses SUCCESSFUL

2 participants