Skip to content

Sending Emails asynchronously using Celery#222

Closed
VarshiniAdurti28 wants to merge 8 commits intoIEEE-NITK:mainfrom
VarshiniAdurti28:main
Closed

Sending Emails asynchronously using Celery#222
VarshiniAdurti28 wants to merge 8 commits intoIEEE-NITK:mainfrom
VarshiniAdurti28:main

Conversation

@VarshiniAdurti28
Copy link
Copy Markdown
Contributor

Description

Emails can now be sent asynchronously using Celery.
A service for redis and celery has been added to the dev docker compose file.

Fixes # (issue)

Dependencies

List any dependencies that are required for this change.

  • celery
  • redis

Type of Change

What types of changes does your code introduce?
Put an x in the boxes that apply

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

This has been tested using a dummy views file in corpus directory itself. We already had send_email in utils.py which was the one being used till now.

  • A task has been created using the same. (tasks.py)

sample_email.html is used for the template_path.


Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@sentry
Copy link
Copy Markdown

sentry Bot commented May 31, 2025

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: corpus/corpus/decorators.py

Function Unhandled Issue
wrapper TypeError: report() got an unexpected keyword argument 'can_view_current_envision ' ...
Event Count: 83
wrapper ModuleConfiguration.DoesNotExist: ModuleConfiguration matching query does not exist. ...
Event Count: 2
wrapper Report.DoesNotExist: Report matching query does not exist. /virtual_expo/preview/{r...
Event Count: 1

Did you find this useful? React with a 👍 or 👎

@ady-1811 ady-1811 added the enhancement New feature or request label Aug 11, 2025
@ady-1811 ady-1811 linked an issue Aug 11, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Celery for async task running

3 participants