Kaustav Banerjee
6b48ff9470
feat: add ability to override middlewares for recurring nudges
...
* feat: add ability to override middlewares for recurring nudges
* feat: add ability to run command for all sites
2025-09-17 21:52:39 +05:30
Usama Sadiq
b6828cecaa
fix: enable pylint warnings ( #36195 )
...
* fix: enable pylint warnings
2025-01-30 17:15:33 +05:00
Tim McCormack
22b9ced6c0
feat: Make celery task protocol configurable via Django setting ( #35789 )
...
This will allow us to test protocol 2 in a stage environment before
removing the override to make 2 the default.
We may have seen a bug where something in celery (or an
associated library) was adding headers to a v1 message as
if it were a v2 message, which caused a bug in ddtrace; such
things may become more likely over time as code is written
with the assumption of v2 messages. Moving to v2 will avoid
those issues.
See https://github.com/edx/edx-arch-experiments/issues/800 for further details.
2024-11-06 15:54:24 -05:00
connorhaugh
674c3edaab
Revert "Revert "Revert "temp: trace celery tasks in dd"" ( #34563 )" ( #34578 )
...
This reverts commit ebe36a2957 .
2024-04-29 13:09:43 -04:00
Diana Huang
ebe36a2957
Revert "Revert "temp: trace celery tasks in dd"" ( #34563 )
...
* Revert "Revert "temp: trace celery tasks in dd (#34537 )" (#34553 )"
This reverts commit a7b441690d .
* docs: Update removal date on temporary celery flag.
2024-04-22 11:05:50 -04:00
connorhaugh
a7b441690d
Revert "temp: trace celery tasks in dd ( #34537 )" ( #34553 )
...
This reverts commit f866545bb9 .
2024-04-19 12:50:33 -07:00
connorhaugh
f866545bb9
temp: trace celery tasks in dd ( #34537 )
2024-04-18 13:08:25 -04:00
Usama Sadiq
7710e60328
fix: fix middleware get_response parameter deprecation warning ( #33067 )
2023-08-22 15:52:30 +05:00
Usama Sadiq
068ac5290f
refactor: Ran pyupgrade on openedx/core
...
Ran pyupgrade on openedx/core/{lib, tests}
2021-04-08 18:34:38 +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
Tim McCormack
0c57a02119
Enforce a Celery singleton across cms and lms by using shared module ( #25840 )
...
This should prevent the issues we've seen recently where cms modules are
imported by the running lms process, resulting in two celery instances
being created and tasks intermittently being registered to the wrong
instance (and therefore effectively lost.)
In commit ab6bf348d4/PR #25822 we tried to ensure that only one or the
other of the instances was created by adding a startup check.
Unfortunately, there's an external shared library that refers directly
to the lms celery, causing a startup failure in cms, so we had to revert
it. Rather than waiting to fix that library, this commit collapses
the two instances together so that there is only ever one.
2020-12-10 17:54:31 +00: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
Andrés González
26b3a40133
INCR-108 ( #20058 )
...
* INCR-108: Run python-modernize on openedx/core/lib
* Fixed urlencode import
* Fixed diff quality warnings and six.string_types error
* Fixed pickle import
* Fixed iteritems import
* Fixed ungrouped imports
* Fixed six.moves import issues
2019-04-02 10:26:00 -04:00
Calen Pennington
300c3a34dd
Don't swallow exceptions inside emulate_http_request
2019-03-06 11:44:29 -05:00
Nimisha Asthagiri
700a902b68
Cleanup and remove deprecated RequestCache Django app
...
ARCH-223
2018-09-12 14:39:11 -04:00
Jeremy Bowman
713d64e1e2
TE-2702 Update Read the Docs links to HTTPS
2018-08-15 17:34:01 -04:00
Qubad786
64555c60c0
Move request_cache to openedx.core.djangoapps
2018-01-26 15:09:25 +05:00
Nimisha Asthagiri
61f4ceca5b
Schedules: Emulate HTTP request needs to include host information
2017-12-03 23:57:12 -05:00
Tyler Hallada
fd5c5acc28
Add emulate_http_request contextmanager for tasks
...
remove explicit middleware from resolver task
Address Gabe's comment
Add TODO to define middleware_classes in settings
2017-11-30 16:40:20 -05:00
Gabe Mulley
54ae1c6238
support theming of ACE emails
2017-11-09 11:16:26 -05:00
Alex Dusenbery
6dfa47b2fc
EDUCATOR-565 | Add POLICY_CHANGE_GRADES_ROUTING_KEY, fix errors in compute_all_grades_for_course circuitry.
2017-07-11 14:01:38 -04:00
Andy Armstrong
93235d118d
Reorder imports using isort (except lms and cms)
2017-05-30 16:04:54 -04:00
Nimisha Asthagiri
408ed01b1d
Block Structure: Don't invalidate immediately upon course publish
...
Introduces the use of Waffle to put the change behind a Switch.
TNL-6323
2017-01-23 11:27:30 -05:00
Eric Fischer
f69b2c41cb
Additional Logging for task queue operation
2016-11-29 09:43:56 -05:00
Eric Fischer
fdc6d91588
update_in_cache on lms worker ( #12689 )
...
This commit "undoes"a previous hotfix, and allows a cms course_publish
signal to trigger a block_structure update_course_in_cache task, which
is run on an lms worker queue.
Changes:
-exposes ALTERNATE_QUEUE_ENVS
-adds routing layer in celery.py
-moves prior dev_with_worker settings file to devstack_with_worker
-moves course_block api functionality into openedx/core/djangoapps/content/block_structure
2016-06-16 18:01:06 -04:00