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

feat: Add code owner tracking to celery tasks. #2070

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openassessment/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Initialization Information for Open Assessment Module
"""

__version__ = '5.5.4'
__version__ = '5.5.5'
6 changes: 6 additions & 0 deletions openassessment/workflow/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

from celery import shared_task

from edx_django_utils.monitoring import set_code_owner_attribute


@shared_task(bind=True,
acks_late=True,
Expand All @@ -12,6 +14,7 @@
retry_backoff=True,
retry_backoff_max=500,
retry_jitter=True)
@set_code_owner_attribute
def update_workflows_for_all_blocked_submissions_task(self): # pylint: disable=unused-argument
"""
Async task wrapper
Expand All @@ -27,6 +30,7 @@ def update_workflows_for_all_blocked_submissions_task(self): # pylint: disable=
retry_backoff=True,
retry_backoff_max=500,
retry_jitter=True)
@set_code_owner_attribute
# pylint: disable=unused-argument
def update_workflows_for_course_task(self, course_id, workflow_update_data_for_course=None):
"""
Expand All @@ -43,6 +47,7 @@ def update_workflows_for_course_task(self, course_id, workflow_update_data_for_c
retry_backoff=True,
retry_backoff_max=500,
retry_jitter=True)
@set_code_owner_attribute
# pylint: disable=unused-argument
def update_workflows_for_ora_block_task(self, item_id, workflow_update_data_for_ora=None, course_settings=None):
"""
Expand All @@ -59,6 +64,7 @@ def update_workflows_for_ora_block_task(self, item_id, workflow_update_data_for_
retry_backoff=True,
retry_backoff_max=300,
retry_jitter=True)
@set_code_owner_attribute
# pylint: disable=unused-argument
def update_workflow_for_submission_task(self, submission_uuid, assessment_requirements=None, course_settings=None):
"""
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edx-ora2",
"version": "5.5.4",
"version": "5.5.5",
"repository": "https://github.com/openedx/edx-ora2.git",
"dependencies": {
"@edx/frontend-build": "^6.1.1",
Expand Down
Loading