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

🚚(celery) rename celery tasks by adding a _task suffix #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wilbrdt
Copy link
Contributor

@wilbrdt wilbrdt commented Oct 14, 2024

Purpose

  • Relocating and renaming tasks files deletion_tasks and emailing_tasks to tasks.deletion and tasks.emailing.
  • Renaming delete_user utility function to delete_user_from_db.
  • Renaming deletion_task task function to delete_user.
  • Renaming send_email task function to warn_user.

@wilbrdt wilbrdt self-assigned this Oct 14, 2024
Copy link
Member

@lunika lunika left a comment

Choose a reason for hiding this comment

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

IMO Having a task module containing tasks will be more relevant than using a suffix.
Something like mork.celery.tasks.deletion.
Morever, right now you already have the information in the modules name that you are working with tasks (deletion_tasks and emailing_tasks), so the information is reduntant

Base automatically changed from remove-username to main October 16, 2024 12:40
@wilbrdt wilbrdt requested a review from lunika October 16, 2024 13:50
Relocating and renaming tasks files `deletion_tasks` and `emailing_tasks` to
`tasks.deletion` and `tasks.emailing`.
Renaming `delete_user` utility function to `delete_user_from_db`.
Renaming `deletion_task` task function to `delete_user`.
Renaming `send_email` task function to `warn_user`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants