openedx.core.djangoapps.schedules.management.commands package#

Submodules#

openedx.core.djangoapps.schedules.management.commands.schedules_data_migration module#

Management command to perform data migration for copying values between date fields of Schedule Model

class openedx.core.djangoapps.schedules.management.commands.schedules_data_migration.Command(stdout=None, stderr=None, no_color=False, force_color=False)#

Bases: BaseCommand

Command to perform data migration for Schedule Model

add_arguments(parser)#

Entry point for subclassed commands to add custom arguments.

handle(*args, **kwargs)#

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

help = 'Copy values from start to start_date in Schedule model'#

openedx.core.djangoapps.schedules.management.commands.send_course_next_section_update module#

Management command to send Schedule course updates

class openedx.core.djangoapps.schedules.management.commands.send_course_next_section_update.Command(*args, **kwargs)#

Bases: SendEmailBaseCommand

Command to send Schedule course updates for Self-paced Courses

async_send_task = <@task: openedx.core.djangoapps.schedules.tasks.ScheduleCourseNextSectionUpdate of proj>#
handle(*args, **options)#

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

help = 'Command to send Schedule course updates for Self-paced Courses'#
log_prefix = 'Course Update'#

openedx.core.djangoapps.schedules.management.commands.send_course_update module#

Management command to send Schedule course updates

class openedx.core.djangoapps.schedules.management.commands.send_course_update.Command(*args, **kwargs)#

Bases: SendEmailBaseCommand

Command to send Schedule course updates for Instructor-paced Courses

async_send_task = <@task: openedx.core.djangoapps.schedules.tasks.ScheduleCourseUpdate of proj>#
help = 'Command to send Schedule course updates for Instructor-paced Courses'#
log_prefix = 'Course Update'#

openedx.core.djangoapps.schedules.management.commands.send_recurring_nudge module#

Management command to send recurring Schedule nudges

class openedx.core.djangoapps.schedules.management.commands.send_recurring_nudge.Command(*args, **kwargs)#

Bases: SendEmailBaseCommand

Command to send recurring Schedule nudges

async_send_task = <@task: openedx.core.djangoapps.schedules.tasks.ScheduleRecurringNudge of proj>#
help = 'Command to send recurring Schedule nudges'#
log_prefix = 'Scheduled Nudge'#
offsets = (-3, -10)#

openedx.core.djangoapps.schedules.management.commands.send_upgrade_reminder module#

A management command to send Schedule upgrade reminders

class openedx.core.djangoapps.schedules.management.commands.send_upgrade_reminder.Command(*args, **kwargs)#

Bases: SendEmailBaseCommand

A management command to send Schedule upgrade reminders

async_send_task = <@task: openedx.core.djangoapps.schedules.tasks.ScheduleUpgradeReminder of proj>#
help = 'A management command to send Schedule upgrade reminders'#
log_prefix = 'Upgrade Reminder'#
offsets = (2,)#

openedx.core.djangoapps.schedules.management.commands.setup_models_to_send_test_emails module#

Module contents#

Base management command for sending emails

class openedx.core.djangoapps.schedules.management.commands.SendEmailBaseCommand(*args, **kwargs)#

Bases: PrefixedDebugLoggerMixin, BaseCommand

add_arguments(parser)#

Entry point for subclassed commands to add custom arguments.

async_send_task = None#
enqueue(day_offset, site, current_date, override_recipient_email=None, override_middlewares=None)#
handle(*args, **options)#

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

offsets = range(-7, -77, -7)#
send_emails(*args, **kwargs)#