-
Notifications
You must be signed in to change notification settings - Fork 2
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
LTD-4652-send-email-task #230
Conversation
I know we called it celery_tasks, but tasks.py is the standard - probably too late to change this throughout, but there we go. |
3b3de86
to
a60e8c7
Compare
aab46cb
to
9304133
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #230 +/- ##
==========================================
+ Coverage 85.76% 85.89% +0.13%
==========================================
Files 46 46
Lines 2929 2957 +28
Branches 413 415 +2
==========================================
+ Hits 2512 2540 +28
Misses 328 328
Partials 89 89 ☔ View full report in Codecov by Sentry. |
6c0a394
to
6d265e2
Compare
6d265e2
to
5315e1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not looked at the tests as they will be very different once it is updated.
I can take a look again when ready.
We need to have tests that ensure child task is spawned and calls email sending methods.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #230 +/- ##
==========================================
+ Coverage 85.76% 85.82% +0.06%
==========================================
Files 46 46
Lines 2929 2963 +34
Branches 413 417 +4
==========================================
+ Hits 2512 2543 +31
- Misses 328 331 +3
Partials 89 89 ☔ View full report in Codecov by Sentry. |
7194cc9
to
c3b2e67
Compare
https://uktrade.atlassian.net/browse/LTD-4652
I have replaced
smtp_send
with celery tasksend_smtp_task
which is being globally locked. I think this can be expanded in the future quite easily inmemcache_lock
if we addcounter
into thecache
and just lockTrue
when iscounter == n