Skip to content

Commit

Permalink
feat: cache management updates, bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jszewczulak committed Sep 22, 2023
1 parent 65eab5a commit 48c8ab3
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 442 deletions.
10 changes: 6 additions & 4 deletions openassessment/workflow/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ def update_workflows_for_all_blocked_submissions_task(self): # pylint: disable=
retry_backoff=True,
retry_backoff_max=500,
retry_jitter=True)
def update_workflows_for_course_task(self, course_id): # pylint: disable=unused-argument
# pylint: disable=unused-argument
def update_workflows_for_course_task(self, course_id, workflow_update_data_for_course=None):
"""
Async task wrapper
"""
from openassessment.workflow.workflow_batch_update_api import update_workflows_for_course
return update_workflows_for_course(course_id)
return update_workflows_for_course(course_id, workflow_update_data_for_course)

Check warning on line 36 in openassessment/workflow/tasks.py

View check run for this annotation

Codecov / codecov/patch

openassessment/workflow/tasks.py#L35-L36

Added lines #L35 - L36 were not covered by tests


@shared_task(bind=True,
Expand All @@ -42,12 +43,13 @@ def update_workflows_for_course_task(self, course_id): # pylint: disable=unused
retry_backoff=True,
retry_backoff_max=500,
retry_jitter=True)
def update_workflows_for_ora_block_task(self, item_id): # pylint: disable=unused-argument
# pylint: disable=unused-argument
def update_workflows_for_ora_block_task(self, item_id, workflow_update_data_for_ora=None, course_settings=None):
"""
Async task wrapper
"""
from openassessment.workflow.workflow_batch_update_api import update_workflows_for_ora_block
return update_workflows_for_ora_block(item_id)
return update_workflows_for_ora_block(item_id, workflow_update_data_for_ora, course_settings)

Check warning on line 52 in openassessment/workflow/tasks.py

View check run for this annotation

Codecov / codecov/patch

openassessment/workflow/tasks.py#L51-L52

Added lines #L51 - L52 were not covered by tests


@shared_task(bind=True,
Expand Down
Loading

0 comments on commit 48c8ab3

Please sign in to comment.