Skip to content

Commit

Permalink
feat: flex peer grading automation logging enhancements (#2066)
Browse files Browse the repository at this point in the history
  • Loading branch information
jszewczulak authored Oct 5, 2023
1 parent b395329 commit 12cfd25
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
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.3'
__version__ = '5.5.4'
26 changes: 17 additions & 9 deletions openassessment/workflow/workflow_batch_update_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ def update_workflows_for_all_blocked_submissions():
task_count=0)
except (UpdateWorkflowsForCourseException, Exception) as e: # pylint: disable=broad-except
logger.error(
"Batch workflow update. Error occurred while updating workflows for all blocked submissions. Error:%s",
str(e))
"Batch workflow update. Error occurred while updating workflows for all blocked submissions. "
"error_message=%s",
str(e), exc_info=True)
raise UpdateWorkflowsForAllBlockedSubmissionsException(str(e)) from e


Expand Down Expand Up @@ -124,9 +125,10 @@ def update_workflows_for_course(course_id, workflow_update_data_for_course=None)
except (UpdateWorkflowsForOraBlockException, Exception) as e: # pylint: disable=broad-except
logger.error(
"Batch workflow update for course blocked submissions failed. "
"course_id=%s Error:%s",
"course_id=%s error_message=%s",
course_id,
str(e))
str(e),
exc_info=True)
raise UpdateWorkflowsForCourseException(str(e)) from e


Expand Down Expand Up @@ -194,7 +196,8 @@ def update_workflows_for_ora_block(item_id, workflow_update_data_for_ora=None, c
"Batch workflow update for ORA block failed. "
"item_id=%s error_message:%s",
item_id,
str(e))
str(e),
exc_info=True)
raise UpdateWorkflowsForOraBlockException(str(e)) from e


Expand Down Expand Up @@ -224,7 +227,8 @@ def update_workflow_for_submission(submission_uuid, assessment_requirements=None
submission_uuid,
assessment_requirements,
course_settings,
str(e))
str(e),
exc_info=True)
raise UpdateWorkflowForSubmissionException(str(e)) from e


Expand Down Expand Up @@ -343,9 +347,13 @@ def get_workflow_update_data(peer_workflows):

except Exception as e: # pylint: disable=broad-except
logger.warning(
"Error occurred while constructing workflow update data "
"for open assessment: %s Error:%s",
peer_workflow.item_id, str(e))
"Error occurred while constructing workflow update data for "
"course_id=%s item_id=%s submission_uuid=%s error_message=%s",
peer_workflow.course_id,
peer_workflow.item_id,
peer_workflow.submission_uuid,
str(e),
exc_info=True)

return workflow_update_data

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.3",
"version": "5.5.4",
"repository": "https://github.com/openedx/edx-ora2.git",
"dependencies": {
"@edx/frontend-build": "^6.1.1",
Expand Down

0 comments on commit 12cfd25

Please sign in to comment.