Usama Sadiq
46993bff00
refactor: pyupgrade second iteration ( #27461 )
2021-05-11 11:24:07 +05:00
Olivia Ruiz-Knott
d7a4947ea9
Merge pull request #27322 from edx/ork/MICROBA-963_move-notify-credentials-to-celery-task
...
perf: move notify_credentials to a celery task
2021-04-27 09:47:03 -06:00
Usama Sadiq
588f11b100
refactor: apply lint-amnesty to pylint violations
2021-04-27 14:43:31 +05:00
oliviaruizknott
5fbb339c25
perf: move notify_credentials to a celery task
...
Before this change, the notify_credentials management command ran for
about 10-15 minutes and occasionally overlapped with an edxapp
deployment which would cause the machine the command was running
on to die. The command ran through a bunch of certs and grades, and then
spun off celery tasks to send the relevant data to credentials.
Now, most of the logic of the notify_credentials management command has
been moved into a new celery task, so that combing through longs lists
of certs and grades is done asynchronously. This task then spins off the
original data-sending tasks as before.
Note that this requires a change in alerting: where the jenkins job
would previously notify us about failures, we need to know when this
new celery task fails for any reason. We’ve made this a LoggedTask
so that failures will be logged to Splunk and alerting can be built off
of the error messages.
This commit also moves the relevant tests.
MICROBA-963
2021-04-26 12:11:25 -06:00
Matt Tuchfarber
64032faae7
Make credentials celery tasks errors consistent
...
In order to better alert off of tasks that failed after maximum retries,
this makes the the error for each task consistent with itself.
2021-02-08 13:55:35 -05:00
Soban Javed
5199bf7acb
Replace task decorator with shared_task in openedx
2021-02-04 18:35:38 +05:00
M. Zulqarnain
355423d322
pylint amnesty in openedx ( #26364 )
2021-02-04 15:34:01 +05:00
Muhammad Soban Javed
bd601cf3a6
Update celery routing for celery 4+ ( #25567 )
...
* Update celery routing
- Used routing function instead of class
- Move task queues dictionary to Django settings
- Removed routing_key parameter
- Refactored routing for singleton celery instantiation
Co-authored-by: Awais Qureshi <awais.qureshi@arbisoft.com >
2020-12-16 13:40:47 +05:00
Robert Raposa
8eef18710d
set code_owner for celery tasks
...
ARCHBOM-1260
Co-authored-by: Tim McCormack <tmccormack@edx.org >
2020-11-17 15:33:33 -05:00
Awais Qureshi
7201edb11d
Revert "Update routing config" ( #25536 )" ( #25549 )" ( #25553 )" ( #25561 )
...
This reverts commit db4c3b1210 .
2020-11-11 00:13:47 +05:00
Awais Qureshi
db4c3b1210
Revert "Revert ""Update routing config" ( #25536 )" ( #25549 )" ( #25553 )
...
This reverts commit c1fe3c3a93 .
2020-11-10 23:23:09 +05:00
Muhammad Soban Javed
c1fe3c3a93
Revert ""Update routing config" ( #25536 )" ( #25549 )
...
This reverts commit 39a22734c1 .
2020-11-09 23:43:47 +05:00
Awais Qureshi
39a22734c1
"Update routing config" ( #25536 )
...
* Revert "Revert "Update routing config"
* Removed settings from lms/celery.py and cms/celery.py
* Moved settings import from top-level to function's scopes
Co-authored-by: Soban Javed <iamsobanjaved@gmail.com >
2020-11-09 19:06:55 +05:00
Muhammad Soban Javed
5a2ea1f954
Revert "Update routing config"
2020-11-06 02:05:48 +05:00
Soban Javed
3206d9cb9a
Update celery routing
...
- Used routing function istead of class
- Move task queues to Djano settings
- Removed routing_key parameter
2020-11-02 15:03:53 +05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Ayub khan
a218ba62b7
INCR-366 python3 compatibility
2019-07-10 14:46:34 +05:00
Matthew Piatetsky
f294b1a374
fix unicode strings in openedx/ part 1
2019-02-13 10:47:35 -05:00
Michael Terry
fd33130d73
Add initial grade signaling
...
Tells the Credential service about user grades when a cert is awarded
or a grade for a course with an awarded cert changes.
LEARNER-5051
2018-06-25 11:42:08 -04:00