Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix field size for MySQL (#285) #287

Merged
merged 1 commit into from
Feb 10, 2022
Merged

Conversation

benselme
Copy link
Contributor

@benselme benselme commented Feb 8, 2022

MySQL/MariaDB do not accept indexed fields larger than 191 chars when using utf8mb4 charset. This makes migrations fail because the task_name field is 255-chars long and indexed.

This issue was fixed for the task_id field using a new DJANGO_CELERY_RESULTS_TASK_ID_MAX_LENGTH Django setting. This PR applies the same fix for field task_name.

@auvipy auvipy self-requested a review February 9, 2022 13:57
@auvipy auvipy merged commit 6167179 into celery:master Feb 10, 2022
@benselme
Copy link
Contributor Author

@auvipy Thank you!

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.

2 participants