Skip to content

Commit

Permalink
ADD Enqueue for new function
Browse files Browse the repository at this point in the history
  • Loading branch information
dolf321 committed May 22, 2023
1 parent 18024d4 commit d3ce7ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/anubis/rpc/enqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from anubis.lms.assignments import make_shared_assignment
from anubis.lms.autograde import bulk_autograde
from anubis.lms.questions import assign_missing_questions
from anubis.lms.regrade import bulk_regrade_assignment
from anubis.lms.regrade import bulk_regrade_assignment, bulk_regrade_assignment_of_student
from anubis.lms.submissions import bulk_regrade_submissions, recalculate_late
from anubis.lms.courses import bulk_create_students
from anubis.utils.data import with_context
Expand Down Expand Up @@ -132,6 +132,9 @@ def enqueue_bulk_regrade_submissions(*args):
"""Enqueue bulk autograde of assignment"""
rpc_enqueue(bulk_regrade_submissions, queue="regrade", args=args)

def enqueue_bulk_regrade_submissions_of_student(*args):
"""Enqueue bulk autograde submissions of a student"""
rpc_enqueue(bulk_regrade_assignment_of_student, queue="regrade", args=args)

def enqueue_bulk_create_students(*args):
"""Enqueue create users for course"""
Expand Down

0 comments on commit d3ce7ee

Please sign in to comment.