lms.djangoapps.instructor_task.management.commands package#

Submodules#

lms.djangoapps.instructor_task.management.commands.fail_old_tasks module#

Commands to fail old tasks

class lms.djangoapps.instructor_task.management.commands.fail_old_tasks.Command(stdout=None, stderr=None, no_color=False, force_color=False)#

Bases: BaseCommand

Command to manually fail old “QUEUING” or “PROGRESS” tasks in the instructor task table.

Example: ./manage.py lms fail_old_tasks QUEUING –dry-run –after 2001-01-03 –before 2001-01-06 –task-type bulk_course_email

add_arguments(parser)#

Add arguments to the command parser.

handle(*args, **options)#

The actual logic of the command. Subclasses must implement this method.

help = 'Command to manually fail old "QUEUING" or "PROGRESS" tasks in the\ninstructor task table.\n\nExample:\n./manage.py lms fail_old_tasks QUEUING --dry-run --after 2001-01-03         --before 2001-01-06 --task-type bulk_course_email'#
static parse_date(date_string)#

Converts an isoformat string into a python datetime object. Localizes that datetime object to UTC.

lms.djangoapps.instructor_task.management.commands.process_scheduled_instructor_tasks module#

Command to process scheduled instructor tasks.

class lms.djangoapps.instructor_task.management.commands.process_scheduled_instructor_tasks.Command(stdout=None, stderr=None, no_color=False, force_color=False)#

Bases: BaseCommand

Command to process Instructor Tasks in the SCHEDULED state that are due for execution.

handle(*args, **options)#

The actual logic of the command. Subclasses must implement this method.

Module contents#