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

Ensure NotifyTask is a polymorphic subclass of Celery.Task #1199

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

quis
Copy link
Member

@quis quis commented Feb 26, 2025

If we override methods in our subclass we should ensure they should have the same signature. This commit adds a test which checks for that.

run is an exception because it is dynamically created based on the function which the task will call.

If we override methods in our subclass we should ensure they should have
the same signature. This commit adds a test which checks for that.

`run` is an exception because it is dynamically created based on the
function which the task will call.
Copy link
Contributor

@klssmith klssmith left a comment

Choose a reason for hiding this comment

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

Nice idea to add a test for this!

@klssmith klssmith merged commit 6eeb425 into fix-celery-retry Feb 26, 2025
2 checks passed
@klssmith klssmith deleted the ensure-notify-celery-polymorphism branch February 26, 2025 11:20
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